aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 0dbae1d0..25455ff6 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -124,7 +124,8 @@ else:
config_file = config_file.replace('{{{ NODE }}}', node)
python = 'python'
try:
- python = Popen(['which', 'python'], stdout=PIPE).communicate()[0].replace('\n', '')
+ python = Popen(['which', 'python2'], stdout=PIPE).communicate()[0].replace('\n', '') or \
+ Popen(['which', 'python'], stdout=PIPE).communicate()[0].replace('\n', '') or python
except:
pass
config_file = config_file.replace('{{{ PYTHON }}}', python)