From: Anthony Geay Date: Mon, 12 Jun 2023 14:50:47 +0000 (+0200) Subject: Avoid additionnal CORBA invocation to clear context X-Git-Tag: emc2p_1.4.0-rc1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1a5f1c76c7259e1b3d60ed3ad6d99d0a0f7e7092;p=modules%2Fkernel.git Avoid additionnal CORBA invocation to clear context --- 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