Browse Source

Fixed a path-search bug in Dtool_PreloadDLL

Josh Yelon 18 years ago
parent
commit
c7895b7c07
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/extensions_native/extension_native_helpers.py

+ 1 - 0
direct/src/extensions_native/extension_native_helpers.py

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