diff options
Diffstat (limited to 'buildscripts/scons.py')
-rwxr-xr-x | buildscripts/scons.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildscripts/scons.py b/buildscripts/scons.py index e7860162eb6..ee2800e8d41 100755 --- a/buildscripts/scons.py +++ b/buildscripts/scons.py @@ -9,8 +9,9 @@ SCONS_VERSION = os.environ.get('SCONS_VERSION', "2.5.0") mongodb_root = os.path.dirname(os.path.dirname(__file__)) scons_dir = os.path.join(mongodb_root, 'src', 'third_party', 'scons-' + SCONS_VERSION) +args = [sys.executable, os.path.join(scons_dir, 'scons.py')] + sys.argv[1:] + if sys.platform == 'win32': - args = [sys.executable, os.path.join(scons_dir, 'scons.py')] + sys.argv[1:] sys.exit(subprocess.call(args)) else: - os.execv(os.path.join(scons_dir, 'scons.py'), sys.argv) + os.execv(sys.executable, args) |