add sys.prefix

This commit is contained in:
David Rose 2007-01-16 22:16:15 +00:00
parent 0c5dcd0b66
commit 0f723c4170

View File

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