From f2e180e51fd1608cdbe781696c24cef0da5ca9b0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 19 Mar 2019 12:16:13 -0300 Subject: [PATCH] validate:launcher: Add a way to force coloration --- validate/launcher/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validate/launcher/utils.py b/validate/launcher/utils.py index 6368dd3fa3..cfa1c85969 100644 --- a/validate/launcher/utils.py +++ b/validate/launcher/utils.py @@ -93,6 +93,9 @@ def is_tty(): def supports_ansi_colors(): + if 'GST_VALIDATE_LAUNCHER_FORCE_COLORS' in os.environ: + return True + platform = sys.platform supported_platform = platform != 'win32' or 'ANSICON' in os.environ if not supported_platform or not is_tty():