Browse Source

makewheel: Use _ctypes instead of cmath for get_python_ext_module_dir()

Also switch back to using __file__ instead of inspect.
Mitchell Stokes 9 years ago
parent
commit
40c23e5cf1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      makepanda/makewheel.py

+ 2 - 3
makepanda/makewheel.py

@@ -81,9 +81,8 @@ def is_fat_file(path):
 
 
 
 
 def get_python_ext_module_dir():
 def get_python_ext_module_dir():
-    import cmath
-    import inspect
-    return os.path.dirname(inspect.getfile(cmath))
+    import _ctypes
+    return os.path.dirname(_ctypes.__file__)
 
 
 
 
 if sys.platform in ('win32', 'cygwin'):
 if sys.platform in ('win32', 'cygwin'):