Skip to content
Snippets Groups Projects
Commit 54a6af86 authored by Whitney Armstrong's avatar Whitney Armstrong Committed by Andre Sailer
Browse files

Fixed small bug in TSystem::Load call

TSystem::Load return > 0 if the library is already loaded. This is not an error. For some reason it was already loaded when I run ddsim in a singularity container. I have no idea why.
parent 62502aba
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ def loadDD4hep(): ...@@ -46,7 +46,7 @@ def loadDD4hep():
gSystem.SetDynamicPath(os.environ['DD4HEP_LIBRARY_PATH']) gSystem.SetDynamicPath(os.environ['DD4HEP_LIBRARY_PATH'])
result = gSystem.Load("libDDCore") result = gSystem.Load("libDDCore")
if 0 != result: if result < 0:
raise Exception('DD4hep.py: Failed to load the DD4hep library libDDCore: '+gSystem.GetErrorStr()) raise Exception('DD4hep.py: Failed to load the DD4hep library libDDCore: '+gSystem.GetErrorStr())
from ROOT import DD4hep as module from ROOT import DD4hep as module
return module return module
......
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