Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e43e8bd
)
[EDF] Taking SALOME launcher options into account through environment variable SALOME...
author
DUC ANH HOANG
<dh77501n@dsp1043837>
Wed, 7 Feb 2024 13:50:38 +0000
(14:50 +0100)
committer
DUC ANH HOANG
<dh77501n@dsp1043837>
Wed, 7 Feb 2024 13:50:38 +0000
(14:50 +0100)
bin/salomeContext.py
patch
|
blob
|
history
diff --git
a/bin/salomeContext.py
b/bin/salomeContext.py
index cdb42c77bc4dcb6f0b5c7f5fc764ba1a7cd95425..4a40e68de1cdddabf5ccad714033c95255492022 100755
(executable)
--- 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()