diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-01-24 18:02:00 -0600 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-01-27 13:02:17 -0600 |
commit | 2beaa7a2da40e336b9606949ba65e0631c775767 (patch) | |
tree | ed794be15497d993fc57ecc60ac6fde138ed6174 /lib | |
parent | 9c12ad0187746d18589c655475b50571fc28fef4 (diff) | |
download | Nim-2beaa7a2da40e336b9606949ba65e0631c775767.tar.gz |
find the nodejs binary
upstream calls it node, debian calls it nodejs. We gotta look for both of them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/nodejs.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/core/nodejs.nim b/lib/core/nodejs.nim new file mode 100644 index 000000000..e2b79df19 --- /dev/null +++ b/lib/core/nodejs.nim @@ -0,0 +1,6 @@ +import os + +proc findNodeJs*(): string = + result = findExe("nodejs") + if result == "": + result = findExe("node") |