]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
fix for windows: clean colors for the display
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 14 Nov 2016 14:16:09 +0000 (15:16 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 14 Nov 2016 14:16:09 +0000 (15:16 +0100)
src/logger.py

index 9f85f0072944e473c1bbeefb1e503d84723b694e..1851b42a819e8d47eaa9c793209cc2b86d6fa754 100644 (file)
@@ -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)