From cdece578e1c4bd36a3ed7ba2f9d179f7f6049125 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 12 Apr 2007 08:24:31 +0000 Subject: [PATCH] Fix bug 15559: --log-file, -f options of the runSalome.py doesn't work. --- bin/launchConfigureParser.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 857b84575..ac9b89fd9 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -187,28 +187,29 @@ class xml_parser: def boolValue( self, str ): strloc = str if isinstance(strloc, types.UnicodeType): - strloc = strloc.encode().strip().lower() + strloc = strloc.encode().strip() if isinstance(strloc, types.StringType): - if strloc in ("1", "yes", "y", "on", "true", "ok"): + strlow = strloc.lower() + if strlow in ("1", "yes", "y", "on", "true", "ok"): return True - elif strloc in ("0", "no", "n", "off", "false", "cancel"): + elif strlow in ("0", "no", "n", "off", "false", "cancel"): return False - return str + return strloc pass def intValue( self, str ): strloc = str if isinstance(strloc, types.UnicodeType): - strloc = strloc.encode().strip().lower() + strloc = strloc.encode().strip() if isinstance(strloc, types.StringType): - if strloc in ("1", "yes", "y", "on", "true", "ok"): + strlow = strloc.lower() + if strlow in ("1", "yes", "y", "on", "true", "ok"): return 1 - elif strloc in ("0", "no", "n", "off", "false", "cancel"): + elif strlow in ("0", "no", "n", "off", "false", "cancel"): return 0 else: return string.atoi(strloc) - else: - return strloc + return strloc pass def startElement(self, name, attrs): @@ -780,5 +781,5 @@ def get_env(theAdditionalOptions=[], appname="SalomeApp"): os.environ[config_var] = ":".join(dirs) # return arguments - print "Args: ", args + #print "Args: ", args return args -- 2.39.2