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: emc2p_1.4.0-rc1~6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=109bd0b007345ef259045030e39e2480db16bdea;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