From 76447997902c04b8920fa1c683aa3626553e6774 Mon Sep 17 00:00:00 2001 From: Andy Dill Date: Wed, 20 May 2015 14:37:26 -0700 Subject: [PATCH] Check PATH first --- tools/compile-coffee.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/compile-coffee.py b/tools/compile-coffee.py index 5b7a17c87716..d7423428f489 100755 --- a/tools/compile-coffee.py +++ b/tools/compile-coffee.py @@ -6,16 +6,15 @@ import sys SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) -WINDOWS_NODE_PATHs = [ +WINDOWS_NODE_PATHs = os.environ['PATH'].split(os.pathsep) + [ 'C:/Program Files (x86)/nodejs', 'C:/Program Files/nodejs', -] + os.environ['PATH'].split(os.pathsep) -NIX_NODE_PATHs = [ +] +NIX_NODE_PATHs = os.environ['PATH'].split(os.pathsep) + [ '/usr/local/bin', '/usr/bin', '/bin', -] + os.environ['PATH'].split(os.pathsep) - +] def main(): input_file = sys.argv[1]