From 875c1fe67e0c4cb7b45e2ab2874d3f991c651211 Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi Date: Thu, 9 Jan 2025 05:08:39 +0100 Subject: [PATCH] Implement comments --- DDCore/python/dd4hepFactories.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/DDCore/python/dd4hepFactories.py b/DDCore/python/dd4hepFactories.py index 71a1b4e05..edcbefa2c 100755 --- a/DDCore/python/dd4hepFactories.py +++ b/DDCore/python/dd4hepFactories.py @@ -27,10 +27,7 @@ def __init__(self): self.all_components = [] def scanPath(self): - if os.getenv("LD_LIBRARY_PATH") is not None: - ldp = os.environ['LD_LIBRARY_PATH'].split(':') - else: - ldp = ['/usr/lib64', '/usr/lib/', '/usr/local/lib', '/usr/lib64/root', '/usr/lib/root', '/usr/local/lib/root'] + ldp = os.getenv("LD_LIBRARY_PATH","/usr/lib64:/usr/lib/:/usr/local/lib:/usr/lib64/root:/usr/lib/root:/usr/local/lib/root").split(':') for p in ldp: if len(p): logger.info('+== Search component directory: ' + p)