mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fixed a path-search bug in Dtool_PreloadDLL
This commit is contained in:
parent
4814634f95
commit
c7895b7c07
@ -29,6 +29,7 @@ def Dtool_PreloadDLL(module):
|
||||
lib = os.path.join(dir, module + ".dll")
|
||||
if (os.path.exists(lib)):
|
||||
target = dir
|
||||
break
|
||||
if (target == None):
|
||||
raise "DLL loader cannot find "+module+"."
|
||||
imp.load_dynamic(module, os.path.join(target, module + ".dll"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user