summaryrefslogtreecommitdiffstats
path: root/test/MSVC/hierarchical.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-09-19 16:02:13 (GMT)
committerSteven Knight <knight@baldmt.com>2008-09-19 16:02:13 (GMT)
commit0981328e8845515903fe0f14a098d3a786e9dd70 (patch)
treecf93d636914d29f630b7af8d021ad28a46bc2ace /test/MSVC/hierarchical.py
parent3c7ed247f90c0c10f42ce491e52326357cb45580 (diff)
downloadSCons-0981328e8845515903fe0f14a098d3a786e9dd70.zip
SCons-0981328e8845515903fe0f14a098d3a786e9dd70.tar.gz
SCons-0981328e8845515903fe0f14a098d3a786e9dd70.tar.bz2
Make the test/MSVC/{msvc,hierarchical}.py tests work even if
%INCLUDE% and %LIB% aren't set.
Diffstat (limited to 'test/MSVC/hierarchical.py')
-rw-r--r--test/MSVC/hierarchical.py4
1 files changed, 2 insertions, 2 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'