From: Nabil Ghodbane Date: Tue, 14 Nov 2023 14:25:21 +0000 (+0100) Subject: spns #38683 [EDF] --keep-paths option X-Git-Tag: V9_12_0^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F8%2Fhead;p=tools%2Fsat.git spns #38683 [EDF] --keep-paths option --- diff --git a/src/fileEnviron.py b/src/fileEnviron.py index b6987ae..dc8dc80 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -489,11 +489,6 @@ class LauncherFileEnviron(FileEnviron): if not self.environ.is_defined("PATH"): self.environ.set("PATH","") - if self.init_path: - self.output.write('\n'+self.indent) - self.add_echo("Modify this variable to not reset the PATHS") - self.output.write(self.indent+'reinitialise_paths=True\n\n') - def add_echo(self, text): """Add a comment @@ -906,11 +901,16 @@ def main(args): # Identify application path then locate configuration files __initialize() - if args == ['--help']: + if '--help' in args: from salomeContext import usage usage() sys.exit(0) + reinitialise_paths=True + if '--keep-paths' in args: + reinitialise_paths=False + args.remove('--keep-paths') + #from salomeContextUtils import getConfigFileNames #configFileNames, args, unexisting = getConfigFileNames( args, checkExistence=True ) #if len(unexisting) > 0: