From: DUC ANH HOANG Date: Tue, 21 May 2024 12:17:42 +0000 (+0200) Subject: document --keep-paths option X-Git-Tag: V9_13_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a30e0dd5c2855e93ce92f1197bcb07a4ae4414c;p=tools%2Fsat.git document --keep-paths option --- 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