From: Serge Rehbinder Date: Mon, 14 Nov 2016 14:16:09 +0000 (+0100) Subject: fix for windows: clean colors for the display X-Git-Tag: 5.0.0a1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70ff5456ff1eac03d50c07e47ed2fcd60ac32df9;p=tools%2Fsat.git fix for windows: clean colors for the display --- diff --git a/src/logger.py b/src/logger.py index 9f85f00..1851b42 100644 --- a/src/logger.py +++ b/src/logger.py @@ -162,7 +162,8 @@ class Logger(object): # get user or option output level current_output_verbose_level = self.config.USER.output_verbose_level - if not ('isatty' in dir(sys.stdout) and sys.stdout.isatty()): + if (src.architecture.is_windows() or + not ('isatty' in dir(sys.stdout) and sys.stdout.isatty())): # clean the message color if the terminal is redirected by user # ex: sat compile appli > log.txt message = printcolors.cleancolor(message)