[Bug] Fixed a bug in Windows DLL loading

This commit is contained in:
Li Fanxi 2010-12-22 00:02:35 +08:00
parent e7c2c28e6f
commit 948afa01e3

View File

@ -18,8 +18,6 @@ try:
cdll = ctypes.cdll cdll = ctypes.cdll
if iswindows: if iswindows:
_lib_name = 'BambookCore' _lib_name = 'BambookCore'
cdll = ctypes.windll
else:
if hasattr(sys, 'frozen') and iswindows: if hasattr(sys, 'frozen') and iswindows:
lp = os.path.join(os.path.dirname(sys.executable), 'DLLs', 'BambookCore.dll') lp = os.path.join(os.path.dirname(sys.executable), 'DLLs', 'BambookCore.dll')
lib_handle = cdll.LoadLibrary(lp) lib_handle = cdll.LoadLibrary(lp)