]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
sh->cfg convert procedure, no delete temporary generated .cfg
authorcvw <cvw>
Mon, 29 Jul 2013 14:21:23 +0000 (14:21 +0000)
committercvw <cvw>
Mon, 29 Jul 2013 14:21:23 +0000 (14:21 +0000)
bin/salomeRunner.py

index bea729836a6957f1b500ce1423f0b73e2ac39b9b..7a884e2379a2aeb9f12f2281194ac1c814a2e38a 100644 (file)
@@ -43,8 +43,9 @@ class SalomeRunner:
       if extension == ".cfg":
         self.__setEnvironmentFromConfigFile(filename)
       elif extension == ".sh":
-        #temp = tempfile.NamedTemporaryFile(suffix='.cfg', delete=False)
-        temp = tempfile.NamedTemporaryFile(suffix='.cfg')
+        #new convert procedures, temporary could be use not to be automatically deleted
+        temp = tempfile.NamedTemporaryFile(suffix='.cfg', delete=False)
+        #temp = tempfile.NamedTemporaryFile(suffix='.cfg')
         try:
           convertEnvFileToConfigFile(filename, temp.name)
           self.__setEnvironmentFromConfigFile(temp.name)