equal
deleted
inserted
replaced
32 except ImportError: |
32 except ImportError: |
33 def kill(*args): |
33 def kill(*args): |
34 """win32 kill implementation""" |
34 """win32 kill implementation""" |
35 def getpgid(): |
35 def getpgid(): |
36 """win32 getpgid implementation""" |
36 """win32 getpgid implementation""" |
|
37 |
37 |
38 |
38 from os.path import exists, join, isfile, isdir, dirname, abspath |
39 from os.path import exists, join, isfile, isdir, dirname, abspath |
39 |
40 |
40 from logilab.common.clcommands import CommandLine |
41 from logilab.common.clcommands import CommandLine |
41 from logilab.common.shellutils import ASK |
42 from logilab.common.shellutils import ASK |
950 CWCTL.register(cmdcls) |
951 CWCTL.register(cmdcls) |
951 |
952 |
952 |
953 |
953 def run(args): |
954 def run(args): |
954 """command line tool""" |
955 """command line tool""" |
|
956 import os |
|
957 sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) |
|
958 sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) |
955 cwcfg.load_cwctl_plugins() |
959 cwcfg.load_cwctl_plugins() |
956 try: |
960 try: |
957 CWCTL.run(args) |
961 CWCTL.run(args) |
958 except ConfigurationError, err: |
962 except ConfigurationError, err: |
959 print 'ERROR: ', err |
963 print 'ERROR: ', err |