beremiz

46425f3248b7
Parents 11903e79ce66
Children 7b9259945453
Fixed bug in support for speed up loading graphic viewers
--- a/plcopen/plcopen.py Fri Jun 14 11:07:59 2013 +0200
+++ b/plcopen/plcopen.py Fri Jun 14 11:45:56 2013 +0200
@@ -1753,6 +1753,13 @@
cls.currentExecutionOrderId = 0
cls.instances_dict = {}
+ setattr(cls, "_init_", getattr(cls, "__init__"))
+
+ def __init__(self, *args, **kwargs):
+ self._init_(*args, **kwargs)
+ self.instances_dict = {}
+ setattr(cls, "__init__", __init__)
+
setattr(cls, "_loadXMLTree", getattr(cls, "loadXMLTree"))
def loadXMLTree(self, *args, **kwargs):