validate:launcher: Add a way to force coloration

This commit is contained in:
Thibault Saunier 2019-03-19 12:16:13 -03:00 committed by Thibault Saunier
parent ddb81f29e8
commit f2e180e51f

View file

@ -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():