mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
makewheel: Use _ctypes instead of cmath for get_python_ext_module_dir()
Also switch back to using __file__ instead of inspect.
This commit is contained in:
parent
a5bea8f8b0
commit
40c23e5cf1
@ -81,9 +81,8 @@ def is_fat_file(path):
|
||||
|
||||
|
||||
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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user