From: DUC ANH HOANG Date: Wed, 7 Feb 2024 13:50:38 +0000 (+0100) Subject: [EDF] Taking SALOME launcher options into account through environment variable SALOME... X-Git-Tag: emc2p_1.6.0-rc1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a6f674a77ba0d967c16f9fb118fbae9faa5b1e2a;p=modules%2Fkernel.git [EDF] Taking SALOME launcher options into account through environment variable SALOME_OPTIONS --- diff --git a/bin/salomeContext.py b/bin/salomeContext.py index cdb42c77b..4a40e68de 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -288,6 +288,11 @@ class SalomeContext: command, options = self.__parseArguments(args) sys.argv = options + # append option from env var SALOME_OPTIONS if it's available + if os.getenv("SALOME_OPTIONS"): + option_from_env = os.getenv("SALOME_OPTIONS").split(' ') + sys.argv += option_from_env + if command is None: if args and args[0] in ["-h","--help","help"]: usage()