Files
lammps/examples/mliappy/test_pylibs.py
Nicholas Lubbers 35f2c9bdf2 Several improvements to capabilities and build.
- cmake fixed, no longer needs numpy headers.
- models can be loaded from an external interepreter.
2020-11-26 12:40:28 -07:00

13 lines
344 B
Python

import sysconfig, os,ctypes
library = sysconfig.get_config_vars('INSTSONAME')[0]
pylib = ctypes.CDLL(library)
connected = pylib.Py_IsInitialized()
if not connected:
print("FAILURE: This interpreter is not compatible with python-driven mliappy.")
else:
print("SUCCESS: This interpreter is compatible with python-driven MLIAPPY")