Salome HOME
launchConfigureParser.py: Setup gui log file via environment variable. po/29467_gui_log_file
authorPascal Obry <pascal.obry@edf.fr>
Fri, 10 Mar 2023 15:42:50 +0000 (16:42 +0100)
committerPascal Obry <pascal.obry@edf.fr>
Tue, 5 Sep 2023 13:34:11 +0000 (15:34 +0200)
This will make it easier to activate the usage logging in distributed
application.

bin/launchConfigureParser.py

index 26b0913c076f08018c43a05a52e757d133f1ef71..5df821118b1ee84b7622dac613842526ef15046c 100644 (file)
@@ -1045,6 +1045,9 @@ def get_env(appname=salomeappname, cfgname=salomecfgname, exeName=None, keepEnvi
             args[file_nam] = [cmd_opts.log_file]
 
     # GUI Log file
+    if os.environ.get("GUI_LOG_FILE") is not None:
+        args["gui_log_file"] = os.environ["GUI_LOG_FILE"]
+
     if cmd_opts.gui_log_file is not None:
         args["gui_log_file"] = cmd_opts.gui_log_file