mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
[Win] Fix running node from python.
There is a mysterious "WindowsError [error 5] Access is denied" error is the "executable" is not specified under Windows.
This commit is contained in:
@@ -16,8 +16,11 @@ def main():
|
||||
|
||||
coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin',
|
||||
'coffee')
|
||||
subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file])
|
||||
|
||||
if sys.platform in ['win32', 'cygwin']:
|
||||
subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file],
|
||||
executable='C:/Program Files/nodejs/node.exe')
|
||||
else:
|
||||
subprocess.check_call(['node', coffee, '-c', '-o', output_dir, input_file])
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user