From 1447ece09352c0c7a8fbeacad55214d2ff075b0d Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 5 Oct 2015 14:44:32 -0700 Subject: [PATCH] Use sys.executable instead of hard coding python binary string This is necessary to get the right binary on Windows --- tools/run_tests/run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 6764586897a..e938520403d 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -732,7 +732,7 @@ def _start_port_server(port_server_port): print 'starting port_server' port_log = open('portlog.txt', 'w') port_server = subprocess.Popen( - ['python2.7', 'tools/run_tests/port_server.py', '-p', '%d' % port_server_port], + [sys.executable, 'tools/run_tests/port_server.py', '-p', '%d' % port_server_port], stderr=subprocess.STDOUT, stdout=port_log) # ensure port server is up