commit
59a2430f1d
2 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import errno
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -20,11 +21,14 @@ def main():
|
||||||
glob.glob('common/api/lib/*.coffee') + \
|
glob.glob('common/api/lib/*.coffee') + \
|
||||||
glob.glob('browser/atom/*.coffee')
|
glob.glob('browser/atom/*.coffee')
|
||||||
|
|
||||||
if sys.platform in ['win32', 'cygwin']:
|
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,
|
subprocess.check_call(['node', coffeelint] + settings + files,
|
||||||
executable='C:/Program Files/nodejs/node.exe')
|
executable='C:/Program Files/nodejs/node.exe')
|
||||||
else:
|
else:
|
||||||
subprocess.check_call(['node', coffeelint] + settings + files)
|
raise
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
2
vendor/apm
vendored
2
vendor/apm
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit a9e5498a838bf228fca53c32f66e2e6d5adcf783
|
Subproject commit 90cd546860e9782ac8d0d5f7a35ab49d5d105a4e
|
Loading…
Add table
Add a link
Reference in a new issue