MCPcopy Index your code
hub / github.com/WebODM/WebODM / register_plugins

Function register_plugins

app/plugins/functions.py:160–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159
160def register_plugins():
161 for plugin in get_active_plugins():
162 try:
163 plugin.register()
164 logger.info("Registered {}".format(plugin))
165 except Exception as e:
166 disable_plugin(plugin.get_name())
167 logger.warning("Cannot register {}: {}".format(plugin, str(e)))
168
169def valid_plugin(plugin_path):
170 initpy_path = os.path.join(plugin_path, "__init__.py")

Callers 1

init_pluginsFunction · 0.85

Calls 5

get_active_pluginsFunction · 0.85
disable_pluginFunction · 0.85
get_nameMethod · 0.80
registerMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected