Skip to content

Commit 3ac2367

Browse files
committed
fix Python DLL resolution
1 parent e23b0a6 commit 3ac2367

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

bindings/python/genomicsqlite/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919
if os.environ.get("GENOMICSQLITE_SYSTEM_LIBRARY", "").strip().lower() not in _YES:
2020
_DLL = {"Linux": ".so", "Darwin": ".dylib"}.get(platform.system(), None)
2121
if _DLL:
22-
_DLL = os.path.isfile(os.path.join(_HERE, "libgenomicsqlite")) + _DLL
23-
if not os.path.isfile(_DLL):
24-
_DLL = None
25-
if not _DLL:
22+
_DLL = os.path.join(_HERE, "libgenomicsqlite") + _DLL
23+
if not (_DLL and os.path.isfile(_DLL)):
2624
_DLL = find_library("genomicsqlite")
2725
assert _DLL, "Unable to locate a suitable genomicsqlite shared-library file"
2826
# open a dummy connection to :memory: just for loading the extension.

0 commit comments

Comments
 (0)