mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +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():
|
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
|
||||||
if not supported_platform or not is_tty():
|
if not supported_platform or not is_tty():
|
||||||
|
|
Loading…
Reference in a new issue