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

Method is_persistent

app/plugins/plugin_base.py:143–148  ·  view source on GitHub ↗

:return: whether this plugin is persistent (stored in the /plugins directory, instead of /app/media/plugins which are transient)

(self)

Source from the content-addressed store, hash-verified

141 return "/plugins/{}/{}".format(self.get_name(), path)
142
143 def is_persistent(self):
144 """
145 :return: whether this plugin is persistent (stored in the /plugins directory,
146 instead of /app/media/plugins which are transient)
147 """
148 return ".." in os.path.relpath(self.get_path(), get_plugins_persistent_path())
149
150 def template_path(self, path):
151 """

Callers 5

template_pathMethod · 0.95
plugin_actionsMethod · 0.80
test_core_pluginsMethod · 0.80
test_plugin_loadingMethod · 0.80
build_pluginsFunction · 0.80

Calls 2

get_pathMethod · 0.95

Tested by 2

test_core_pluginsMethod · 0.64
test_plugin_loadingMethod · 0.64