Update __init__.py
This commit is contained in:
@ -21,8 +21,8 @@ elif OS_name == "Windows":
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
pylib = ctypes.CDLL(library)
|
pylib = ctypes.CDLL(library)
|
||||||
except:
|
except Exception as e:
|
||||||
OSError
|
raise OSError("Unable to locate python shared library") from e
|
||||||
|
|
||||||
if not pylib.Py_IsInitialized():
|
if not pylib.Py_IsInitialized():
|
||||||
raise RuntimeError("This interpreter is not compatible with python-based mliap for LAMMPS.")
|
raise RuntimeError("This interpreter is not compatible with python-based mliap for LAMMPS.")
|
||||||
|
|||||||
Reference in New Issue
Block a user