From: cvw Date: Mon, 29 Jul 2013 14:21:23 +0000 (+0000) Subject: sh->cfg convert procedure, no delete temporary generated .cfg X-Git-Tag: begin_agr_portmanager_branch_131004~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f0f9779d36a5824d97f64fbfbea943523b9c471;p=modules%2Fkernel.git sh->cfg convert procedure, no delete temporary generated .cfg --- diff --git a/bin/salomeRunner.py b/bin/salomeRunner.py index bea729836..7a884e237 100644 --- a/bin/salomeRunner.py +++ b/bin/salomeRunner.py @@ -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)