pyulib honore maintenant UTOOLS_NO_COLORS

This commit is contained in:
Jephté Clain 2015-07-17 11:45:22 +04:00
parent 3ee6cb4d7c
commit 27f5f7a905
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ OUT_ISATTY = _isatty(OUT)
ERR = sys.stderr ERR = sys.stderr
ERR_ISATTY = _isatty(ERR) 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' RESET = '0'
BLACK = '30'; RED = '31'; GREEN = '32'; YELLOW = '33' BLACK = '30'; RED = '31'; GREEN = '32'; YELLOW = '33'
BLUE = '34'; MAGENTA = '35'; CYAN = '36'; WHITE = '37' BLUE = '34'; MAGENTA = '35'; CYAN = '36'; WHITE = '37'