From 9ca2c16bc35d5f7a1fd1d7df7c89f9c2e4a79d8a Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 8 Jun 2015 11:52:02 -0400 Subject: [PATCH] [SCons] Fix running test suite with minimal Python module --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index c7837ec43..0442e68ed 100644 --- a/SConstruct +++ b/SConstruct @@ -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']