diff options
| author | Steven Knight <knight@baldmt.com> | 2008-09-19 16:02:13 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2008-09-19 16:02:13 (GMT) |
| commit | 0981328e8845515903fe0f14a098d3a786e9dd70 (patch) | |
| tree | cf93d636914d29f630b7af8d021ad28a46bc2ace /test/MSVC/msvc.py | |
| parent | 3c7ed247f90c0c10f42ce491e52326357cb45580 (diff) | |
| download | SCons-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/msvc.py')
| -rw-r--r-- | test/MSVC/msvc.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |
