Write output directly to stderr

This commit is contained in:
Cheng Zhao 2015-09-03 17:20:48 +09:00
parent 28e5258a96
commit f75458f78d
2 changed files with 4 additions and 3 deletions

View file

@ -78,7 +78,8 @@ def main():
def run_script(script, args=[]):
print 'Running', script
sys.stderr.write('\nRunning ' + script +'\n')
sys.stderr.flush()
script = os.path.join(SOURCE_ROOT, 'script', script)
subprocess.check_call([sys.executable, script] + args)

View file

@ -15,11 +15,11 @@ ipc.on('message', function(event, arg) {
});
ipc.on('console.log', function(event, args) {
console.log.apply(console, args);
console.error.apply(console, args);
});
ipc.on('console.error', function(event, args) {
console.log.apply(console, args);
console.error.apply(console, args);
});
ipc.on('process.exit', function(event, code) {