(self)
| 49 | return existing |
| 50 | |
| 51 | def load_plugin(self): |
| 52 | try: |
| 53 | plugin = self._load_module() |
| 54 | self.description = plugin.description |
| 55 | self.address = plugin.address |
| 56 | self.access = getattr(self._load_module(), 'access', self.Access.APP) |
| 57 | return True |
| 58 | except Exception as e: |
| 59 | logging.error('Error loading plugin=%s, %s' % (self.name, e)) |
| 60 | return False |
| 61 | |
| 62 | async def enable(self, services): |
| 63 | try: |