[py] Use the first found native library. (#9860)
This commit is contained in:
parent
42de9206fc
commit
1094d6015d
@ -211,6 +211,7 @@ def _load_lib() -> ctypes.CDLL:
|
|||||||
lib = ctypes.cdll.LoadLibrary(lib_path)
|
lib = ctypes.cdll.LoadLibrary(lib_path)
|
||||||
setattr(lib, "path", os.path.normpath(lib_path))
|
setattr(lib, "path", os.path.normpath(lib_path))
|
||||||
lib_success = True
|
lib_success = True
|
||||||
|
break
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
os_error_list.append(str(e))
|
os_error_list.append(str(e))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user