From 27f5f7a905d155176ef0e38b4434f4bfc4cebb03 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 17 Jul 2015 11:45:22 +0400 Subject: [PATCH] pyulib honore maintenant UTOOLS_NO_COLORS --- lib/pyulib/src/ulib/base/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pyulib/src/ulib/base/output.py b/lib/pyulib/src/ulib/base/output.py index ebb4ee6..4eed0cf 100644 --- a/lib/pyulib/src/ulib/base/output.py +++ b/lib/pyulib/src/ulib/base/output.py @@ -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'