MCPcopy
hub / github.com/apache/caldera / load_plugin

Method load_plugin

app/objects/c_plugin.py:51–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 1

loadMethod · 0.95

Calls 1

_load_moduleMethod · 0.95

Tested by

no test coverage detected