From 556b9d6b754731dbd51cd40e2915ff7a2f9b75e1 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 28 Feb 2021 04:53:49 -0600 Subject: [PATCH] use sys.stdout.isatty() to detect if a tty is available --- otherworld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otherworld b/otherworld index f0eac32..4c0b6c7 100755 --- a/otherworld +++ b/otherworld @@ -176,7 +176,7 @@ command_env = {} command_workdir = None quiet = False -tty = True +tty = sys.stdout.isatty() # load config from files config = load_config_files({