MCPcopy
hub / github.com/WebODM/WebODM / get_plugins_paths

Function get_plugins_paths

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

Source from the content-addressed store, hash-verified

300 return None
301
302def get_plugins_paths():
303 current_path = os.path.dirname(os.path.realpath(__file__))
304 return [
305 os.path.abspath(get_plugins_persistent_path()),
306 os.path.abspath(os.path.join(current_path, "..", "..", "coreplugins")),
307 ]
308
309def get_plugins_persistent_path(*paths):
310 return path_traversal_check(os.path.join(settings.MEDIA_ROOT, "plugins", *paths), os.path.join(settings.MEDIA_ROOT, "plugins"))

Callers 2

get_pluginsFunction · 0.85
get_current_pluginFunction · 0.85

Calls 1

Tested by

no test coverage detected