Skip to content

Commit

Permalink
fix printout when not built with data source (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila authored Sep 18, 2024
1 parent 1af6557 commit 03a75ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/podio/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

from ROOT import gSystem

if gSystem.Load("libpodioDataSourceDict") < 0:
if (
not gSystem.DynamicPathName("libpodioDataSourceDict", True)
or gSystem.Load("libpodioDataSourceDict") < 0
):
raise ImportError("Error when loading libpodioDataSourceDict")

from ROOT import podio # pylint: disable=wrong-import-position
Expand Down

0 comments on commit 03a75ee

Please sign in to comment.