mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
validate:launcher: Add a way to force stdout coloring
This commit is contained in:
parent
ac7efe9500
commit
c8a3b34a3a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue