Commit d69030db authored by Neal Norwitz's avatar Neal Norwitz

Get popen test to work even if python is not in the path

parent 6f18a3c1
......@@ -15,7 +15,7 @@ from os import popen
# This results in Python being spawned and printing the sys.argv list.
# We can then eval() the result of this, and see what each argv was.
def _do_test_commandline(cmdline, expected):
cmd = 'python -c "import sys;print sys.argv" %s' % (cmdline,)
cmd = '%s -c "import sys;print sys.argv" %s' % (sys.executable, cmdline)
data = popen(cmd).read()
got = eval(data)[1:] # strip off argv[0]
if got != expected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment