# HG changeset patch # User Laurent Bessard # Date 1371203156 -7200 # Node ID 46425f3248b728e53c9c28758e71b0e2572d4aff # Parent 11903e79ce666e79629da71ca437b59e77e1bbd0 Fixed bug in support for speed up loading graphic viewers diff -r 11903e79ce66 -r 46425f3248b7 plcopen/plcopen.py --- 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):