From: Anthony Geay Date: Mon, 12 Jun 2023 14:50:47 +0000 (+0200) Subject: Avoid additionnal CORBA invocation to clear context X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1354dcba43ca44aac1dd6bdc72725bb0dd01fbd6;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 c2c9b06c7..7045ce8ca 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