ソースを参照

Fixed a path-search bug in Dtool_PreloadDLL

Josh Yelon 18 年 前
コミット
c7895b7c07
1 ファイル変更1 行追加0 行削除
  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"))