I installed to `c:\nodejs` to avoid spaces in path (old habits die hard). So i had an obstacle you see.
This commit is contained in:
IgorKlopov 2014-11-25 10:27:31 -08:00
Родитель 03f19bea6b
Коммит 1af0e0a762
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -9,6 +9,7 @@ SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
WINDOWS_NODE_PATHs = [ WINDOWS_NODE_PATHs = [
'C:/Program Files/nodejs/node.exe', 'C:/Program Files/nodejs/node.exe',
'C:/Program Files (x86)/nodejs/node.exe', 'C:/Program Files (x86)/nodejs/node.exe',
'C:/nodejs/node.exe',
] ]
@ -21,7 +22,7 @@ def main():
if sys.platform in ['win32', 'cygwin']: if sys.platform in ['win32', 'cygwin']:
node = find_node() node = find_node()
if not node: if not node:
print 'Node.js is required for building atom-shell' print 'Node.js is required for building atom-shell at paths:\n' + '\n'.join(WINDOWS_NODE_PATHs)
return 1 return 1
subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file], subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file],
executable=node) executable=node)