Update __init__.py

This commit is contained in:
Dionysios Sema
2022-08-10 12:22:29 -06:00
committed by GitHub
parent 94403eaf76
commit f1cca7d37d

View File

@ -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.")