setup: stop shadowing the builtin `dir` symbol
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 18 Jul 2022 17:00:59 -0400
changeset 49394 5cf73de964e1
parent 49393 b9fcf54030d7
child 49395 747c4fc20886
setup: stop shadowing the builtin `dir` symbol I hit this when debugging what's available on the compiler.
setup.py
--- a/setup.py	Mon Jul 18 03:29:53 2022 -0400
+++ b/setup.py	Mon Jul 18 17:00:59 2022 -0400
@@ -700,8 +700,8 @@
 
         pythonlib = None
 
-        dir = os.path.dirname(self.get_ext_fullpath('dummy'))
-        self.hgtarget = os.path.join(dir, 'hg')
+        dirname = os.path.dirname(self.get_ext_fullpath('dummy'))
+        self.hgtarget = os.path.join(dirname, 'hg')
 
         if getattr(sys, 'dllhandle', None):
             # Different Python installs can have different Python library