aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS3
-rw-r--r--tools/shared.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index f0055f2e..43ea83dd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -68,4 +68,5 @@ a license to everyone to use it as detailed in LICENSE.)
* Llorens Marti Garcia <lgarcia@imvu.com> (copyright owned by IMVU)
* Jinsuck Kim <jkim@imvu.com> (copyright owned by IMVU)
* Todd Lee <tlee@imvu.com> (copyright owned by IMVU)
-* Anthony Pesch <inolen@gmail.com> \ No newline at end of file
+* Anthony Pesch <inolen@gmail.com>
+* Robert Bragg <robert.bragg@intel.com> (copyright owned by Intel Corporation)
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)