Fix obscure Wndows DLL issue. Closes #208
This commit is contained in:
parent
690588410e
commit
3808a73751
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def _load_shared_library(lib_base_name: str):
|
||||||
for _lib_path in _lib_paths:
|
for _lib_path in _lib_paths:
|
||||||
if _lib_path.exists():
|
if _lib_path.exists():
|
||||||
try:
|
try:
|
||||||
return ctypes.CDLL(str(_lib_path))
|
return ctypes.CDLL(str(_lib_path), winmode=0)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")
|
raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue