From: Serge Rehbinder Date: Fri, 4 Nov 2016 08:58:24 +0000 (+0100) Subject: option --logs_paths_in_file: do not write in the the file at each micro command end X-Git-Tag: 5.0.0a1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a09c5b522cdb94c17e794718aa11ab8640fd4bc;p=tools%2Fsat.git option --logs_paths_in_file: do not write in the the file at each micro command end --- diff --git a/salomeTools.py b/salomeTools.py index 4b25cfa..2cb9b8d 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -223,7 +223,7 @@ class Sat(object): # Check that the path given by the logs_paths_in_file option # is a file path that can be written - if self.options.logs_paths_in_file: + if self.options.logs_paths_in_file and not micro_command: try: self.options.logs_paths_in_file = os.path.abspath( self.options.logs_paths_in_file) @@ -296,7 +296,7 @@ class Sat(object): res = 1 # If the logs_paths_in_file was called, write the result # and log files in the given file path - if self.options.logs_paths_in_file: + if self.options.logs_paths_in_file and not micro_command: file_res = open(self.options.logs_paths_in_file, "w") file_res.write(str(res) + "\n") for i, filepath in enumerate(logger_command.l_logFiles):