slight change in __init__.py to fix *.a bug
This commit is contained in:
@ -10,6 +10,7 @@ try:
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if pylib.endswith(".a"):
|
if pylib.endswith(".a"):
|
||||||
pylib.strip(".a") + ".so"
|
pylib.strip(".a") + ".so"
|
||||||
|
pylib = ctypes.CDLL(library)
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
if not pylib.Py_IsInitialized():
|
if not pylib.Py_IsInitialized():
|
||||||
|
|||||||
Reference in New Issue
Block a user