test.py
changeset 5275 d4008f2981ba
parent 5274 8723fb3b377b
child 5279 1aec8ea805d2
--- a/test.py	Mon Sep 28 10:11:05 2009 -0700
+++ b/test.py	Mon Sep 28 17:18:12 2009 -0700
@@ -329,20 +329,23 @@
 def make_library_path():
     global LIBRARY_PATH
 
-    LIBRARY_PATH = "LD_LIBRARY_PATH='"        
+    LIBRARY_PATH = "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'"        
 
     if sys.platform == "darwin":
         LIBRARY_PATH = "DYLD_LIBRARY_PATH='"
     elif sys.platform == "win32":
-        LIBRARY_PATH = "PATH='"
+        LIBRARY_PATH = "PATH=$PATH:'"
     elif sys.platform == "cygwin":
-        LIBRARY_PATH = "PATH='"
+        LIBRARY_PATH = "PATH=$PATH:'"
 
     for path in NS3_MODULE_PATH:
         LIBRARY_PATH = LIBRARY_PATH + path + ":"
 
     LIBRARY_PATH = LIBRARY_PATH + "'"
 
+    if options.verbose:
+        print "LIBRARY_PATH == %s" % LIBRARY_PATH
+
 def run_job_synchronously(shell_command, directory):
     cmd = "%s %s/%s/%s" % (LIBRARY_PATH, NS3_BUILDDIR, NS3_ACTIVE_VARIANT, shell_command)
     if options.verbose: