use stdout in print_msg

This commit is contained in:
thomasv 2012-12-18 11:56:27 +01:00
parent 72b4ac97d0
commit 6824179eea
1 changed files with 5 additions and 3 deletions

View File

@ -58,13 +58,15 @@ def set_verbosity(b):
def print_error(*args):
if not is_verbose: return
print_msg(*args)
args = [str(item) for item in args]
sys.stderr.write(" ".join(args) + "\n")
sys.stderr.flush()
def print_msg(*args):
# Stringify args
args = [str(item) for item in args]
sys.stderr.write(" ".join(args) + "\n")
sys.stderr.flush()
sys.stdout.write(" ".join(args) + "\n")
sys.stdout.flush()
def user_dir():