From 1a5f1c76c7259e1b3d60ed3ad6d99d0a0f7e7092 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 12 Jun 2023 16:50:47 +0200 Subject: [PATCH] Avoid additionnal CORBA invocation to clear context --- src/Container/SALOME_PyNode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index e54dc8b3a..dfc5467e8 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -375,6 +375,11 @@ class PyScriptNode_i (Engines__POA.PyScriptNode,Generic): self.ccode=compile(code,nodeName,'exec') self.context={} self.context[MY_CONTAINER_ENTRY_IN_GLBS] = self.my_container + + def __del__(self): + # force removal of self.context. Don t know why it s not done by default + self.removeAllVarsInContext() + pass def getContainer(self): return self.my_container -- 2.39.2