From d69030db4ff101c6182ef13d8a057f5b8d5193d6 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 20 Jul 2002 20:35:13 +0000 Subject: [PATCH] Get popen test to work even if python is not in the path --- Lib/test/test_popen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 2681eb0fe89..17491d84107 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -15,7 +15,7 @@ # 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: