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 236dec55..24adaec8 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -33,7 +33,8 @@ else:
config_file = config_file.replace('{{{ LLVM_ROOT }}}', llvm_root)
node = 'node'
try:
- node = Popen(['which', 'node'], stdout=PIPE).communicate()[0].replace('\n', '')
+ node = Popen(['which', 'node'], stdout=PIPE).communicate()[0].replace('\n', '') or \
+ Popen(['which', 'nodejs'], stdout=PIPE).communicate()[0].replace('\n', '')
except:
pass
config_file = config_file.replace('{{{ NODE }}}', node)