# HG changeset patch # User Alexandre Fayolle # Date 1287580812 -7200 # Node ID 34be5986bca0adb8fbf4a8cc066f884402f38046 # Parent 48ba5069e051bae29cea80ab02bff2487b623023 make stdout and stderr non buffered for cwctl commands (#1330647) diff -r 48ba5069e051 -r 34be5986bca0 cwctl.py --- a/cwctl.py Wed Oct 20 12:28:11 2010 +0200 +++ b/cwctl.py Wed Oct 20 15:20:12 2010 +0200 @@ -35,6 +35,7 @@ def getpgid(): """win32 getpgid implementation""" + from os.path import exists, join, isfile, isdir, dirname, abspath from logilab.common.clcommands import CommandLine @@ -952,6 +953,9 @@ def run(args): """command line tool""" + import os + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) + sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) cwcfg.load_cwctl_plugins() try: CWCTL.run(args)