aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-03 13:29:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-03 13:29:18 -0700
commit2b9c02e72a06486fb6fb2edbd9d8141fde9ec700 (patch)
tree085b3293011505fcfeb1663fd1f8b9da8568148c /tools
parentcac435e8aad60b535d3abdc648f97837a037a573 (diff)
use sys.executable
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 6256ae67..2bd219a9 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -217,7 +217,7 @@ else:
except:
pass
config_file = config_file.replace('{{{ NODE }}}', node)
- python = 'python'
+ python = sys.executable or 'python'
try:
python = Popen(['which', 'python2'], stdout=PIPE).communicate()[0].replace('\n', '') or \
Popen(['which', 'python'], stdout=PIPE).communicate()[0].replace('\n', '') or python