use sys.stdout.isatty() to detect if a tty is available
This commit is contained in:
parent
6c48e92378
commit
556b9d6b75
@ -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({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user