Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2060c9a
)
Avoid additionnal CORBA invocation to clear context
author
Anthony Geay
<anthony.geay@edf.fr>
Mon, 12 Jun 2023 14:50:47 +0000
(16:50 +0200)
committer
Anthony Geay
<anthony.geay@edf.fr>
Tue, 22 Aug 2023 09:40:50 +0000
(11:40 +0200)
src/Container/SALOME_PyNode.py
patch
|
blob
|
history
diff --git
a/src/Container/SALOME_PyNode.py
b/src/Container/SALOME_PyNode.py
index e54dc8b3a893a0427988fb514f8e1ee214cac85d..dfc5467e88b4886dc2371b7e5c301a719e372d6f 100644
(file)
--- 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