summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--o3d/tests/build.scons5
1 files changed, 1 insertions, 4 deletions
diff --git a/o3d/tests/build.scons b/o3d/tests/build.scons
index 0af1c95..8bfde29 100644
--- a/o3d/tests/build.scons
+++ b/o3d/tests/build.scons
@@ -644,10 +644,7 @@ if env.AnyBits('mac', 'windows'):
selenium_env['SETUP_SCRIPTS'] = (
'set PYTHONPATH=' + env.Dir('$MAIN_DIR/scripts').abspath)
- try:
- selenium_env['ENV']['DXSDK_DIR'] = os.environ['DXSDK_DIR']
- except KeyError:
- selenium_env['ENV']['DXSDK_DIR'] = ''
+ selenium_env['ENV']['DXSDK_DIR'] = os.environ.get('DXSDK_DIR', '')
selenium_env.AlwaysBuild(selenium_env.Alias('prep_selenium', [],
[Delete('$TARGET_ROOT/${PREP_SELENIUM_ARCHIVE_NAME}'),