[SCons] Fix running test suite with minimal Python module

This commit is contained in:
Ray Speth 2015-06-08 11:52:02 -04:00
parent c512e2bcbb
commit 9ca2c16bc3

View file

@ -935,9 +935,10 @@ if env['python_package'] == 'new':
env['python_package'] = 'full' # Allow 'new' as a synonym for 'full'
warnNoPython = False
# The directory within the source tree which will contain the Python 2 module
env['pythonpath_build2'] = Dir('build/python2').abspath
if env['python_package'] in ('full','default'):
# The directory within the source tree which will contain the Python 2 module
env['pythonpath_build2'] = Dir('build/python2').abspath
if 'PYTHONPATH' in env['ENV']:
env['pythonpath_build2'] += os.path.pathsep + env['ENV']['PYTHONPATH']