mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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():
|
def supports_ansi_colors():
|
||||||
|
if 'GST_VALIDATE_LAUNCHER_FORCE_COLORS' in os.environ:
|
||||||
|
return True
|
||||||
platform = sys.platform
|
platform = sys.platform
|
||||||
supported_platform = platform != 'win32' or 'ANSICON' in os.environ
|
supported_platform = platform != 'win32' or 'ANSICON' in os.environ
|
||||||
# isatty is not always implemented, #6223.
|
# isatty is not always implemented, #6223.
|
||||||
|
|
Loading…
Reference in a new issue