MCPcopy Create free account
hub / github.com/WebODM/WebODM / valid_plugin

Function valid_plugin

app/plugins/functions.py:169–173  ·  view source on GitHub ↗
(plugin_path)

Source from the content-addressed store, hash-verified

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")
171 pluginpy_path = os.path.join(plugin_path, "plugin.py")
172 manifest_path = os.path.join(plugin_path, "manifest.json")
173 return os.path.isfile(initpy_path) and os.path.isfile(manifest_path) and os.path.isfile(pluginpy_path)
174
175plugins = None
176def get_plugins():

Callers 2

plugin_uploadMethod · 0.90
get_pluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected