]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
skip cleandup in EnvFileConverter .sh
authorcvw <cvw>
Fri, 26 Jul 2013 13:17:45 +0000 (13:17 +0000)
committercvw <cvw>
Fri, 26 Jul 2013 13:17:45 +0000 (13:17 +0000)
bin/parseConfigFile.py

index 8085055610ba597526bd8b324b7c253918cb659a..db33a4fe0f5237ae30f937ddd2195639bf1f5ef4 100644 (file)
@@ -250,6 +250,13 @@ class EnvFileConverter(object):
           value = self._purgeValue(value, k)
           line = ADD_TO_PREFIX + k + ": " + value
       # Update list of variable names
+      if "cleandup()" in line:
+        print "WARNING: parseConfigFile.py: skip cleandup and look for '# PRODUCT environment'"
+        while True:
+          line = self.fp.readline()
+          if "# PRODUCT environment" in line:
+            print "WARNING: parseConfigFile.py: '# PRODUCT environment' found"
+            break
       if "=" in line:
         variable, value = line.split('=')
         self.allParsedVariableNames.append(variable)
@@ -296,7 +303,8 @@ class EnvFileConverter(object):
 # Convert .sh environment file to configuration file format
 def convertEnvFileToConfigFile(envFilename, configFilename):
   #reserved=['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH']
-  reserved=['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH', 'MANPATH', 'R_LIBS', 'PV_PLUGIN_PATH']
+  print "convert envFilename",envFilename
+  reserved=['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH', 'MANPATH', 'R_LIBS', 'PV_PLUGIN_PATH', 'TCLLIBPATH', 'TKLIBPATH']
   fileContents = open(envFilename, 'r').read()
 
   pattern = re.compile('\n[\n]+', re.VERBOSE) # multiple '\n'