From 39dfb7ccbe03288690da1f70c80a99089a1f522a Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 21 Feb 2022 09:36:26 +0100 Subject: [PATCH] End of Fix foreground into runSalome.py --- bin/runSalome.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/runSalome.py b/bin/runSalome.py index ff6fff387..20f3da436 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -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) -- 2.39.2