Browse Source

add sys.prefix

David Rose 19 năm trước cách đây
mục cha
commit
0f723c4170
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      direct/src/extensions_native/extension_native_helpers.py

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

@@ -6,7 +6,7 @@ import sys,os
 # Make sure the panda DLL directory is first on the path.
 if (sys.platform == "win32"):
     target = None
-    for dir in sys.path:
+    for dir in sys.path + [sys.prefix]:
         lib = os.path.join(dir,"libpandaexpress.dll")
         if (os.path.exists(lib)):
             target = dir