aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-10-05 14:44:32 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-10-05 14:44:32 -0700
commit1447ece09352c0c7a8fbeacad55214d2ff075b0d (patch)
tree2806d1a19507fd755e2151e41eb13388ad3e07e0 /tools
parente1d8d4dc1bdf54273b7ed9d4a495789430cbdf6c (diff)
Use sys.executable instead of hard coding python binary string
This is necessary to get the right binary on Windows
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/run_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index 6764586897..e938520403 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