mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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():
|
def get_python_ext_module_dir():
|
||||||
import cmath
|
import _ctypes
|
||||||
import inspect
|
return os.path.dirname(_ctypes.__file__)
|
||||||
return os.path.dirname(inspect.getfile(cmath))
|
|
||||||
|
|
||||||
|
|
||||||
if sys.platform in ('win32', 'cygwin'):
|
if sys.platform in ('win32', 'cygwin'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user