summaryrefslogtreecommitdiff
path: root/scipy_distutils/exec_command.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-02-01 11:07:24 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-02-01 11:07:24 +0000
commitf09957a1e0d6071cc344e190c673e3121abfef2b (patch)
treea460e73ebe61011bad8a55480b23c43548f5a34a /scipy_distutils/exec_command.py
parent20bbaaf22546b712cdb237566c32154f5c7d83bc (diff)
downloadnumpy-f09957a1e0d6071cc344e190c673e3121abfef2b.tar.gz
Under nt always use sys.executable as python
Diffstat (limited to 'scipy_distutils/exec_command.py')
-rw-r--r--scipy_distutils/exec_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy_distutils/exec_command.py b/scipy_distutils/exec_command.py
index eab722a74..d75768f57 100644
--- a/scipy_distutils/exec_command.py
+++ b/scipy_distutils/exec_command.py
@@ -36,7 +36,7 @@
# nt | win32 | Cygwin 98-4.10, Python 2.1.1(MSC) - echo tests
# fail i.e. redefining environment variables may
# not work.
-#
+# posix | cygwin | Cygwin 98-4.10, Python 2.3.3(cygming special)
__all__ = ['exec_command','find_executable']
@@ -467,7 +467,7 @@ def test_nt():
s,o=exec_command('%s -c "import sys;sys.exit(15)"' % pythonexe)
assert s==15 and o=='',(s,o)
- s,o=exec_command('python -c "print \'Heipa\'"')
+ s,o=exec_command('%s -c "print \'Heipa\'"' % pythonexe)
assert s==0 and o=='Heipa',(s,o)
print 'ok'