cwctl.py
branchstable
changeset 6562 34be5986bca0
parent 6505 ac4cecb26813
child 6657 402bff898024
--- 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)