MCPcopy
hub / github.com/eudicots/Cactus / load

Method load

cactus/plugin/loader.py:73–88  ·  view source on GitHub ↗

:returns: The list of plugins loaded by this loader.

(self)

Source from the content-addressed store, hash-verified

71 self.plugin_path = plugin_path
72
73 def load(self):
74 """
75 :returns: The list of plugins loaded by this loader.
76 """
77 plugins = []
78
79 # Load user plugins
80 for plugin_path in fileList(self.plugin_path):
81 if self._is_plugin_path(plugin_path):
82 custom_plugin = self._load_plugin_path(plugin_path)
83 if custom_plugin:
84 self._initialize_plugin(custom_plugin)
85 plugins.append(custom_plugin)
86
87
88 return plugins
89
90 def _is_plugin_path(self, plugin_path):
91 """

Callers

nothing calls this directly

Calls 4

_is_plugin_pathMethod · 0.95
_load_plugin_pathMethod · 0.95
fileListFunction · 0.90
_initialize_pluginMethod · 0.80

Tested by

no test coverage detected