mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
validate:launcher: Add a way to force coloration
This commit is contained in:
parent
ddb81f29e8
commit
f2e180e51f
1 changed files with 3 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue