commit
59a2430f1d
2 changed files with 9 additions and 5 deletions
|
@ -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
|
@ -1 +1 @@
|
|||
Subproject commit a9e5498a838bf228fca53c32f66e2e6d5adcf783
|
||||
Subproject commit 90cd546860e9782ac8d0d5f7a35ab49d5d105a4e
|
Loading…
Reference in a new issue