From: Pascal Obry Date: Fri, 10 Mar 2023 15:42:50 +0000 (+0100) Subject: launchConfigureParser.py: Setup gui log file via environment variable. X-Git-Tag: V9_12_0a1~4^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b4e0b2a96fd8152a7f94b87e479ad9f8d0a60aa;p=modules%2Fkernel.git launchConfigureParser.py: Setup gui log file via environment variable. This will make it easier to activate the usage logging in distributed application. --- diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 26b0913c0..5df821118 100644 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -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