From: cvw Date: Mon, 29 Jul 2013 14:01:37 +0000 (+0000) Subject: skip clean calls with ending ";" problem X-Git-Tag: begin_agr_portmanager_branch_131004~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19d4476c7782d8f34a4cba93c270544e70657c42;p=modules%2Fkernel.git skip clean calls with ending ";" problem --- diff --git a/bin/parseConfigFile.py b/bin/parseConfigFile.py index db33a4fe0..bf2dbb9e0 100644 --- a/bin/parseConfigFile.py +++ b/bin/parseConfigFile.py @@ -257,6 +257,8 @@ class EnvFileConverter(object): if "# PRODUCT environment" in line: print "WARNING: parseConfigFile.py: '# PRODUCT environment' found" break + while "clean " in line[0:6]: #skip clean calls with ending ";" crash + line = self.fp.readline() if "=" in line: variable, value = line.split('=') self.allParsedVariableNames.append(variable) @@ -303,7 +305,7 @@ class EnvFileConverter(object): # Convert .sh environment file to configuration file format def convertEnvFileToConfigFile(envFilename, configFilename): #reserved=['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH'] - print "convert envFilename",envFilename + print "convert envFilename",envFilename,"to",configFilename reserved=['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH', 'MANPATH', 'R_LIBS', 'PV_PLUGIN_PATH', 'TCLLIBPATH', 'TKLIBPATH'] fileContents = open(envFilename, 'r').read()