From 4f0f9779d36a5824d97f64fbfbea943523b9c471 Mon Sep 17 00:00:00 2001 From: cvw Date: Mon, 29 Jul 2013 14:21:23 +0000 Subject: [PATCH] sh->cfg convert procedure, no delete temporary generated .cfg --- bin/salomeRunner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2