Skip to content
Snippets Groups Projects
Commit 823696a9 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Fixed bug with empty LD_LIBRARY_PATH environment variable

parent b0c6dc96
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,12 @@ class DCTLauncher(object):
self.conf = dct.dct_io_xml.DCTConf(self.confPath)
# Adding runtime libraries
try:
env_initial = os.environ["LD_LIBRARY_PATH"]
except KeyError:
env_initial = ""
libs = self.conf.getRuntimeLibraries()
env_initial = os.environ["LD_LIBRARY_PATH"]
for lib in libs:
env_var = os.environ["LD_LIBRARY_PATH"]
os.environ["LD_LIBRARY_PATH"] = ":".join([env_var, lib])
......
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