]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
End of Fix foreground into runSalome.py agy/29134
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 21 Feb 2022 08:36:26 +0000 (09:36 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 21 Feb 2022 08:36:26 +0000 (09:36 +0100)
bin/runSalome.py

index ff6fff387e5e6071a7352cfce4341a4bd10c542b..20f3da436b1fa1d6a045127e41e817b75454255f 100755 (executable)
@@ -218,6 +218,11 @@ def foreGround(args, ior_fakens_filename):
         except Exception:
             pass
         if ( session is not None ) and (not CORBA.is_nil(session)):
+            try:
+                os.remove(ior_fakens_filename)
+                logger.debug("File {} has been removed".format(ior_fakens_filename))
+            except:
+                pass
             logger.debug("Session in child process has been found ! yeah ! {}".format(str(session)))
             break
         sleep(dt)