summaryrefslogtreecommitdiffstats
path: root/test/MSVC
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC')
-rw-r--r--test/MSVC/hierarchical.py4
-rw-r--r--test/MSVC/msvc.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/MSVC/hierarchical.py b/test/MSVC/hierarchical.py
index 2dece66..19b9dcc 100644
--- a/test/MSVC/hierarchical.py
+++ b/test/MSVC/hierarchical.py
@@ -50,8 +50,8 @@ SConscript('build/SConscript')
test.write('src/SConscript',"""
import os
env = Environment()
-env.Append(CPPPATH=os.environ['INCLUDE'],
- LIBPATH=os.environ['LIB'])
+env.Append(CPPPATH=os.environ.get('INCLUDE', ''),
+ LIBPATH=os.environ.get('LIB', ''))
env['PCH'] = 'StdAfx.pch'
env['PDB'] = '#out/test.pdb'
env['PCHSTOP'] = 'StdAfx.h'
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py
index 552d039..3d2f1f4 100644
--- a/test/MSVC/msvc.py
+++ b/test/MSVC/msvc.py
@@ -43,8 +43,8 @@ if sys.platform != 'win32':
test.write('SConstruct',"""
import os
env = Environment()
-env.Append(CPPPATH=os.environ['INCLUDE'],
- LIBPATH=os.environ['LIB'])
+env.Append(CPPPATH=os.environ.get('INCLUDE', ''),
+ LIBPATH=os.environ.get('LIB', ''))
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = 'StdAfx.h'
env['PCH'] = env.PCH('StdAfx.cpp')[0]