Several improvements to capabilities and build.
- cmake fixed, no longer needs numpy headers. - models can be loaded from an external interepreter.
This commit is contained in:
12
examples/mliappy/test_pylibs.py
Normal file
12
examples/mliappy/test_pylibs.py
Normal file
@ -0,0 +1,12 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user