[mousetrap/gnome3-wip: 41/240] Use append instead of replacing sys.path.



commit 9487b7e73a2ffa7518a7a03eda46ba7ca04647d9
Author: Stoney Jackson <dr stoney gmail com>
Date:   Fri May 16 15:48:45 2014 -0400

    Use append instead of replacing sys.path.

 bin/lib/run_python_tests.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/bin/lib/run_python_tests.py b/bin/lib/run_python_tests.py
index 48d6a20..1af645b 100755
--- a/bin/lib/run_python_tests.py
+++ b/bin/lib/run_python_tests.py
@@ -16,7 +16,12 @@ def initialize_import_path():
         get_source_directory(),
         get_project_directory()
     ]
-    sys.path += paths
+    append_to_path(paths)
+
+
+def append_to_path(paths):
+    for path in paths:
+        sys.path.append(path)
 
 
 def get_source_directory():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]