Write output directly to stderr
This commit is contained in:
parent
28e5258a96
commit
f75458f78d
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue