aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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