aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorvolpino <fox91@anche.no>2012-07-24 08:10:56 +0200
committerCorentin Chary <corentin.chary@gmail.com>2012-07-25 16:53:16 +0200
commit67654ee0b4da40741e2eb0a6d9c00d823a2031c5 (patch)
tree51af07662c82f2c53b516ecea0724e0497f89188 /bin
parenteuscanwww: From fixture to south data migration (diff)
downloadeuscan-67654ee0b4da40741e2eb0a6d9c00d823a2031c5.tar.gz
euscan-67654ee0b4da40741e2eb0a6d9c00d823a2031c5.tar.bz2
euscan-67654ee0b4da40741e2eb0a6d9c00d823a2031c5.zip
euscan: Progressbar on stderr
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euscan3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/euscan b/bin/euscan
index eb637d1..47bb7b4 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -35,6 +35,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):
@@ -183,7 +184,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"):