summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r--QMTest/TestSCons.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index 86c0dec..360a799 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -240,11 +240,6 @@ class TestSCons(TestCommon):
pass
else:
os.chdir(script_dir)
- else:
- try:
- self.script_srcdir = os.environ['PYTHON_SCRIPT_DIR']
- except KeyError:
- pass
if 'program' not in kw:
kw['program'] = os.environ.get('SCONS')
if not kw['program']:
@@ -281,6 +276,11 @@ class TestSCons(TestCommon):
if SCons.Node.FS.default_fs is None:
SCons.Node.FS.default_fs = SCons.Node.FS.FS()
+ try:
+ self.script_srcdir = os.environ['PYTHON_SCRIPT_DIR']
+ except KeyError:
+ pass
+
def Environment(self, ENV=None, *args, **kw):
"""
Return a construction Environment that optionally overrides