From 385be83632ba863b48e0190d474f10e4df6a9eb3 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 21 Sep 2023 16:19:02 +0200 Subject: [PATCH] Avoid noisy but harmless ROOT message during podio builds --- python/podio/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/podio/test_utils.py b/python/podio/test_utils.py index 3fed5959a..2c07d086b 100644 --- a/python/podio/test_utils.py +++ b/python/podio/test_utils.py @@ -4,7 +4,8 @@ import os import ROOT -ROOT.gSystem.Load("libTestDataModelDict.so") # noqa: E402 +if ROOT.gSystem.DynamicPathName("libTestDataModelDict.so", True): # noqa: E402 + ROOT.gSystem.Load("libTestDataModelDict.so") # noqa: E402 from ROOT import ExampleHitCollection, ExampleClusterCollection # noqa: E402 # pylint: disable=wrong-import-position from podio import Frame # pylint: disable=wrong-import-position