]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
launchConfigureParser.py: Setup gui log file via environment variable.
authorPascal Obry <pascal.obry@edf.fr>
Fri, 10 Mar 2023 15:42:50 +0000 (16:42 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 2 Oct 2023 11:03:58 +0000 (13:03 +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