mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import errno
|
||||
import glob
|
||||
import os
|
||||
import subprocess
|
||||
@@ -20,11 +21,14 @@ def main():
|
||||
glob.glob('common/api/lib/*.coffee') + \
|
||||
glob.glob('browser/atom/*.coffee')
|
||||
|
||||
if sys.platform in ['win32', 'cygwin']:
|
||||
subprocess.check_call(['node', coffeelint] + settings + files,
|
||||
executable='C:/Program Files/nodejs/node.exe')
|
||||
else:
|
||||
try:
|
||||
subprocess.check_call(['node', coffeelint] + settings + files)
|
||||
except OSError as e:
|
||||
if e.errno == errno.ENOENT and sys.platform in ['win32', 'cygwin']:
|
||||
subprocess.check_call(['node', coffeelint] + settings + files,
|
||||
executable='C:/Program Files/nodejs/node.exe')
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
2
vendor/apm
vendored
2
vendor/apm
vendored
Submodule vendor/apm updated: a9e5498a83...90cd546860
Reference in New Issue
Block a user