Skip to content

Commit

Permalink
Compose full list in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Nov 25, 2014
1 parent 5137e16 commit 0ab4475
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/compile-coffee.py
Expand Up @@ -9,7 +9,7 @@
WINDOWS_NODE_PATHs = [
'C:/Program Files/nodejs',
'C:/Program Files (x86)/nodejs',
]
] + os.environ['PATH'].split(os.pathsep)

def main():
input_file = sys.argv[1]
Expand All @@ -29,8 +29,7 @@ def main():


def find_node():
PATHs = WINDOWS_NODE_PATHs + os.environ['PATH'].split(os.pathsep)
for path in PATHs:
for path in WINDOWS_NODE_PATHs:
full_path = os.path.join(path, 'node.exe')
if os.path.exists(full_path):
return full_path
Expand Down

0 comments on commit 0ab4475

Please sign in to comment.