Fix calling node in coffeelint.
This commit is contained in:
parent
f3103e9b00
commit
2522bc2298
1 changed files with 7 additions and 4 deletions
|
@ -20,11 +20,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,
|
|
||||||
executable='C:/Program Files/nodejs/node.exe')
|
|
||||||
else:
|
|
||||||
subprocess.check_call(['node', coffeelint] + settings + files)
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue