Skip to content
Snippets Groups Projects
Commit 3e0242a6 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Fix ROOT error code interpretation

parent 2c5b2c5c
Branches
No related tags found
1 merge request!4KM3NeT Dataformat data writeout
Pipeline #16373 passed with warnings
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -33,7 +33,7 @@ try:
libpath = environ.get("KM3NET_LIB")
if libpath is None:
libpath = Config().km3net_lib_path
if ROOT.gSystem.Load(join(libpath, "libKM3NeTROOT.so")) != 0:
if ROOT.gSystem.Load(join(libpath, "libKM3NeTROOT.so")) < 0:
raise ModuleNotFoundError("KM3NeT dataformat library not found!")
except ModuleNotFoundError:
import warnings
......
......@@ -31,7 +31,7 @@ try:
if libpath is None:
libpath = Config().km3net_lib_path
KM3NET_LIB_AVAILABLE = (ROOT.gSystem.Load(join(libpath,
"libKM3NeTROOT.so")) == 0)
"libKM3NeTROOT.so")) >= 0)
except ModuleNotFoundError:
KM3NET_LIB_AVAILABLE = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment