plugger.py
changeset 253 b1a9d37bb84c
parent 250 01963beca027
child 256 1da137b99948
equal deleted inserted replaced
252:5c8167203f6e 253:b1a9d37bb84c
   503                     _self.ChangesToSave = False
   503                     _self.ChangesToSave = False
   504                 else:
   504                 else:
   505                     # If plugin do not have corresponding file/dirs - they will be created on Save
   505                     # If plugin do not have corresponding file/dirs - they will be created on Save
   506                     os.mkdir(_self.PlugPath())
   506                     os.mkdir(_self.PlugPath())
   507                     # Find an IEC number
   507                     # Find an IEC number
   508                     _self.FindNewIEC_Channel(0, None)
   508                     _self.FindNewIEC_Channel(0)
   509                     # Call the plugin real __init__
   509                     # Call the plugin real __init__
   510                     if getattr(PlugClass, "__init__", None):
   510                     if getattr(PlugClass, "__init__", None):
   511                         PlugClass.__init__(_self)
   511                         PlugClass.__init__(_self)
   512                     _self.PlugRequestSave()
   512                     _self.PlugRequestSave()
   513                     #just created, must be saved
   513                     #just created, must be saved