summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/scons.py b/src/script/scons.py
index 3490873..8e64d1d 100644
--- a/src/script/scons.py
+++ b/src/script/scons.py
@@ -37,6 +37,10 @@ import os
# followed by generic) so we pick up the right version of the build
# engine modules if they're in either directory.
+selfdir = os.path.abspath(sys.argv[0])
+if selfdir in sys.path:
+ sys.path.remove(selfdir)
+
libs = []
if os.environ.has_key("SCONS_LIB_DIR"):