validate:launcher: Add a way to force stdout coloring
This commit is contained in:
parent
ac7efe9500
commit
c8a3b34a3a
@ -89,6 +89,8 @@ class Protocols(object):
|
||||
|
||||
|
||||
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
|
||||
# isatty is not always implemented, #6223.
|
||||
|
Loading…
x
Reference in New Issue
Block a user