MCPcopy
hub / github.com/WebODM/WebODM / get_path

Method get_path

app/plugins/plugin_base.py:98–103  ·  view source on GitHub ↗

Gets the path of the directory of the plugin, optionally chained with paths :return: path

(self, *paths)

Source from the content-addressed store, hash-verified

96
97
98 def get_path(self, *paths):
99 """
100 Gets the path of the directory of the plugin, optionally chained with paths
101 :return: path
102 """
103 return os.path.join(os.path.dirname(sys.modules[self.get_module_name()].__file__), *paths)
104
105 def get_name(self):
106 """

Callers 9

check_requirementsMethod · 0.95
is_persistentMethod · 0.95
path_existsMethod · 0.95
get_dynamic_scriptMethod · 0.95
get_manifestMethod · 0.95
test_core_pluginsMethod · 0.80
sync_plugin_dbFunction · 0.80
build_pluginsFunction · 0.80
app_view_handlerFunction · 0.80

Calls 1

get_module_nameMethod · 0.95

Tested by 1

test_core_pluginsMethod · 0.64