From 1354dcba43ca44aac1dd6bdc72725bb0dd01fbd6 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 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 -- 2.39.2