use sys.stdout.isatty() to detect if a tty is available

This commit is contained in:
Adrian Kuschelyagi Malacoda 2021-02-28 04:53:49 -06:00
parent 6c48e92378
commit 556b9d6b75

View File

@ -176,7 +176,7 @@ command_env = {}
command_workdir = None command_workdir = None
quiet = False quiet = False
tty = True tty = sys.stdout.isatty()
# load config from files # load config from files
config = load_config_files({ config = load_config_files({