Skip to content

Commit

Permalink
Load libraries without the .so suffix to make it work in other OSes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Jul 10, 2024
1 parent 3d271d0 commit 1d5d9bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/edm4hep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

from .__version__ import __version__
import ROOT
res = ROOT.gSystem.Load('libedm4hepDict.so')
res = ROOT.gSystem.Load('libedm4hepDict')
if res < 0:
raise RuntimeError('Failed to load libedm4hepDict.so')
raise RuntimeError('Failed to load libedm4hepDict')

res = ROOT.gSystem.Load('libedm4hepRDF.so')
res = ROOT.gSystem.Load('libedm4hepRDF')
if res < 0:
raise RuntimeError('Failed to load libedm4hepRDF.so')
raise RuntimeError('Failed to load libedm4hepRDF')

res = ROOT.gInterpreter.LoadFile('edm4hep/utils/kinematics.h')
if res != 0:
Expand Down

0 comments on commit 1d5d9bc

Please sign in to comment.