MCPcopy Index your code
hub / github.com/pyload/pyload / getPluginName

Method getPluginName

module/plugins/PluginManager.py:281–288  ·  view source on GitHub ↗

used to obtain new name if other plugin was injected

(self, name)

Source from the content-addressed store, hash-verified

279 return self.loadModule(type, name)
280
281 def getPluginName(self, name):
282 """ used to obtain new name if other plugin was injected"""
283 plugin, type = self.findPlugin(name)
284
285 if "new_name" in plugin:
286 return plugin["new_name"]
287
288 return name
289
290 def loadModule(self, type, name):
291 """ Returns loaded module for plugin

Callers 1

initPluginMethod · 0.80

Calls 1

findPluginMethod · 0.95

Tested by

no test coverage detected