diff options
author | Christian Goetze (CG) <cg@lindenlab.com> | 2010-09-13 13:44:17 -0700 |
---|---|---|
committer | Christian Goetze (CG) <cg@lindenlab.com> | 2010-09-13 13:44:17 -0700 |
commit | e0da08da6942139424aab07f8ed05845b2238be6 (patch) | |
tree | 26794dc56f9e9e0341cb672b13f91a8f863d9435 /indra/cmake | |
parent | e7dc84df0d71cd544bc8b8cb8d49133bef19ade8 (diff) |
Clean up the LD_LIBRARY_PATH list prior to re-assembling it into a string.
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/run_build_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/cmake/run_build_test.py b/indra/cmake/run_build_test.py index dca206f51f..1236604b21 100644 --- a/indra/cmake/run_build_test.py +++ b/indra/cmake/run_build_test.py @@ -83,6 +83,11 @@ def main(command, libpath=[], vars={}): # Append the sequence in libpath print "%s += %r" % (var, libpath) dirs.extend(libpath) + # Filter out some useless pieces + clean_dirs = [] + for dir in dirs: + if dir and dir not in ('', '.'): + clean_dirs.append(dir) # Now rebuild the path string. This way we use a minimum of separators # -- and we avoid adding a pointless separator when libpath is empty. os.environ[var] = os.pathsep.join(dirs) |