pyulib honore maintenant UTOOLS_NO_COLORS
This commit is contained in:
parent
3ee6cb4d7c
commit
27f5f7a905
|
@ -40,7 +40,7 @@ OUT_ISATTY = _isatty(OUT)
|
|||
ERR = sys.stderr
|
||||
ERR_ISATTY = _isatty(ERR)
|
||||
|
||||
USE_COLORS = OUT_ISATTY and ERR_ISATTY
|
||||
USE_COLORS = OUT_ISATTY and ERR_ISATTY and not os.environ.get('UTOOLS_NO_COLORS', '')
|
||||
RESET = '0'
|
||||
BLACK = '30'; RED = '31'; GREEN = '32'; YELLOW = '33'
|
||||
BLUE = '34'; MAGENTA = '35'; CYAN = '36'; WHITE = '37'
|
||||
|
|
Loading…
Reference in New Issue