Update __init__.py

This commit is contained in:
chemshift
2022-08-07 23:00:35 -06:00
parent 2d3504ff0f
commit 2227de3231

View File

@ -25,7 +25,7 @@ try:
pylib = ctypes.CDLL(library) pylib = ctypes.CDLL(library)
except OSError as e: except OSError as e:
if library.endswith(".a"): if library.endswith(".a"):
library = library.strip(".a") + ".so" library = library.strip(".a") + SHLIB_SUFFIX
pylib = ctypes.CDLL(library) pylib = ctypes.CDLL(library)
else: else:
raise e raise e