diff options
author | volpino <fox91@anche.no> | 2012-07-24 08:10:56 +0200 |
---|---|---|
committer | volpino <fox91@anche.no> | 2012-07-24 08:10:56 +0200 |
commit | 2b09bfba8ace32b9e905bf001ec6bc7e6f82b149 (patch) | |
tree | 7fa9b2dc13ef9bf41c1bfa4eb7147d6aa0fa2498 /bin | |
parent | Merge branch 'master' of https://github.com/iksaif/euscan (diff) | |
download | euscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.tar.gz euscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.tar.bz2 euscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.zip |
euscan: Progressbar on stderr
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/euscan | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,6 +36,7 @@ from euscan import CONFIG, output # Globals isatty = os.environ.get('TERM') != 'dumb' and sys.stdout.isatty() +isatty_stderr = os.environ.get('TERM') != 'dumb' and sys.stderr.isatty() def exit_helper(status): @@ -184,7 +185,7 @@ def parse_args(): CONFIG['nocolor'] = True pp.output.nocolor() elif o in ("-p", "--progress"): - CONFIG['progress'] = isatty + CONFIG['progress'] = isatty_stderr elif o in ("--mirror"): CONFIG['mirror'] = True elif o in ("-i", "--ignore-pre-release"): |