]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
skip clean calls with ending ";" problem
authorcvw <cvw>
Mon, 29 Jul 2013 14:01:37 +0000 (14:01 +0000)
committercvw <cvw>
Mon, 29 Jul 2013 14:01:37 +0000 (14:01 +0000)
bin/parseConfigFile.py

index db33a4fe0f5237ae30f937ddd2195639bf1f5ef4..bf2dbb9e08bbf724dc0b0db2b50f3f040a4fcdb0 100644 (file)
@@ -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()