mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[Bug] Fixed a bug in Windows DLL loading
This commit is contained in:
parent
e7c2c28e6f
commit
948afa01e3
@ -18,8 +18,6 @@ try:
|
||||
cdll = ctypes.cdll
|
||||
if iswindows:
|
||||
_lib_name = 'BambookCore'
|
||||
cdll = ctypes.windll
|
||||
else:
|
||||
if hasattr(sys, 'frozen') and iswindows:
|
||||
lp = os.path.join(os.path.dirname(sys.executable), 'DLLs', 'BambookCore.dll')
|
||||
lib_handle = cdll.LoadLibrary(lp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user