We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e23b0a6 commit 3ac2367Copy full SHA for 3ac2367
1 file changed
bindings/python/genomicsqlite/__init__.py
@@ -19,10 +19,8 @@
19
if os.environ.get("GENOMICSQLITE_SYSTEM_LIBRARY", "").strip().lower() not in _YES:
20
_DLL = {"Linux": ".so", "Darwin": ".dylib"}.get(platform.system(), None)
21
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:
+ _DLL = os.path.join(_HERE, "libgenomicsqlite") + _DLL
+if not (_DLL and os.path.isfile(_DLL)):
26
_DLL = find_library("genomicsqlite")
27
assert _DLL, "Unable to locate a suitable genomicsqlite shared-library file"
28
# open a dummy connection to :memory: just for loading the extension.
0 commit comments