From 7a30e0dd5c2855e93ce92f1197bcb07a4ae4414c Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 21 May 2024 14:17:42 +0200 Subject: [PATCH] document --keep-paths option --- src/fileEnviron.py | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/fileEnviron.py b/src/fileEnviron.py index 9e98b3f..d2dffd2 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -816,9 +816,20 @@ def main(args): if args == ['--help']: from salomeContext import usage - usage() + appended_opt_doc = \""" +--keep-paths +============ + With this option the environment variables PATH, PYTHONPATH and LD_LIBRARY_PATH defined into the starting shell are kept. + Without this option all values set before starting SALOME are simply ignored. +\""" + usage(appended_opt_doc=appended_opt_doc) sys.exit(0) + reinitialise_paths=True + if '--keep-paths' in args: + reinitialise_paths=False + args.remove('--keep-paths') + # Create a SalomeContext which parses configFileNames to initialize environment try: @@ -904,7 +915,13 @@ def main(args): if '--help' in args: from salomeContext import usage - usage() + appended_opt_doc = \""" +--keep-paths +============ + With this option the environment variables PATH, PYTHONPATH and LD_LIBRARY_PATH defined into the starting shell are kept. + Without this option all values set before starting SALOME are simply ignored. +\""" + usage(appended_opt_doc=appended_opt_doc) sys.exit(0) reinitialise_paths=True -- 2.30.2