From: Nabil Ghodbane Date: Tue, 11 Jun 2024 12:23:36 +0000 (+0200) Subject: document --keep-paths option X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fduc%2Fdoc_for_option_keeppath;p=tools%2Fsat.git document --keep-paths option --- diff --git a/src/fileEnviron.py b/src/fileEnviron.py index 9ec3c17..d2dffd2 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -811,12 +811,15 @@ def _showDoc(modules): print (module+"_ROOT_DIR not found!") def main(args): - from salomeContext import usage + # Identify application path then locate configuration files + __initialize() + if args == ['--help']: + from salomeContext import usage appended_opt_doc = \""" --keep-paths ============ - With this option the environment varaibles PATH, PYTHONPATH and LD_LIBRARY_PATH defined into the starting shell are keept. + 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) @@ -912,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