mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-22 19:14:00 +08:00
Fix calling node in coffeelint.
This commit is contained in:
@@ -20,11 +20,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__':
|
||||
|
||||
Reference in New Issue
Block a user