diff options
| author | Sye van der Veen <svanderveen@blackberry.com> | 2014-01-24 17:56:30 (GMT) |
|---|---|---|
| committer | Sye van der Veen <svanderveen@blackberry.com> | 2014-01-24 17:56:30 (GMT) |
| commit | 864b97c8e206ac024eb3307ceaea5a5844e89971 (patch) | |
| tree | 59128bc2964318e5b96e0045e6bec3c30a9b08e8 /src/engine | |
| parent | 31f06d13a8c5f1bf8c3dc675088756e98172c61b (diff) | |
| download | SCons-864b97c8e206ac024eb3307ceaea5a5844e89971.zip SCons-864b97c8e206ac024eb3307ceaea5a5844e89971.tar.gz SCons-864b97c8e206ac024eb3307ceaea5a5844e89971.tar.bz2 | |
Fix TestCmd to use ctypes when PyWin32 is not installed, and respect os.environ.get('python_executable') in ActionTests
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/SCons/ActionTests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/engine/SCons/ActionTests.py b/src/engine/SCons/ActionTests.py index 13c3b6c..3e900d7 100644 --- a/src/engine/SCons/ActionTests.py +++ b/src/engine/SCons/ActionTests.py @@ -185,9 +185,8 @@ class DummyNode(object): if os.name == 'java': python = os.path.join(sys.prefix, 'jython') else: - python = sys.executable - -_python_ = '"' + python + '"' + python = os.environ.get('python_executable', sys.executable) +_python_ = test.escape(python) _null = SCons.Action._null |
