Fixed a path-search bug in Dtool_PreloadDLL

This commit is contained in:
Josh Yelon 2008-01-29 17:05:53 +00:00
parent 4814634f95
commit c7895b7c07

View File

@ -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"))