progress: enable progress bar if it is a TTY

Fixes #2645
This commit is contained in:
Ruslan Kuprieiev
2019-10-21 23:35:47 +03:00
committed by GitHub
parent 3043ed2cb9
commit 2274261808
+1 -1
View File
@@ -89,7 +89,7 @@ class Tqdm(tqdm):
and not env2bool("DVC_IGNORE_ISATTY")
and hasattr(file, "isatty")
):
disable = file.isatty()
disable = not file.isatty()
super(Tqdm, self).__init__(
iterable=iterable,
disable=disable,