Skip to content
Snippets Groups Projects
Commit 31fd2f59 authored by Valentin Volkl's avatar Valentin Volkl
Browse files

up

parent 19cdb387
No related branches found
No related tags found
No related merge requests found
Pipeline #5538615 failed
......@@ -92,13 +92,21 @@ class Application(object):
# API must be protected acquiring the GIL
#
if sys.platform == "darwin":
pass
#TODO
libpaths = os.environ["GAUDI_LIBRARY_PATH"]
if not libpaths:
print("ERROR: GAUDI_LIBRARY_PATH is empty!")
for _path in libpaths.split(':'):
_lib = os.path.join(_path, "libGaudiKernel.dylib")
if os.path.isfile(_lib):
gkl = _GaudiKernelLib = ctypes.CDLL(
_lib,
mode=ctypes.RTLD_GLOBAL,
)
else:
gkl = _GaudiKernelLib = ctypes.CDLL(
"libGaudiKernel.so"
mode=ctypes.RTLD_GLOBAL,
)
gkl = _GaudiKernelLib = ctypes.CDLL(
"libGaudiKernel.so",
mode=ctypes.RTLD_GLOBAL,
)
gkl._py_Gaudi__Application__create.restype = ctypes.c_void_p
gkl._py_Gaudi__Application__run.argtypes = [ctypes.c_void_p]
gkl._py_Gaudi__Application__run.restype = ctypes.c_int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment