Check PATH first

This commit is contained in:
Andy Dill 2015-05-20 14:37:26 -07:00
parent e4415f0021
commit 7644799790

View file

@ -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]