diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-15 10:50:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-17 12:43:59 -0700 |
commit | e5c06731b700183d872a18faddc31280e6e3d0ef (patch) | |
tree | e74cf99214e47097155896df5c1c557f4d86a847 /tools | |
parent | 3d14ede5265275d7573a0a8283a09133926b8a42 (diff) |
improve node autodetection
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 3 |
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) |