From 0a09c5b522cdb94c17e794718aa11ab8640fd4bc Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Fri, 4 Nov 2016 09:58:24 +0100 Subject: [PATCH] option --logs_paths_in_file: do not write in the the file at each micro command end --- salomeTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.2