- cmake fixed, no longer needs numpy headers. - models can be loaded from an external interepreter.
13 lines
344 B
Python
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")
|