MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / load_plugin

Function load_plugin

ui/easydiffusion/app.py:281–283  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

279 import importlib
280
281 def load_plugin(file):
282 mod_path = file.replace(".py", "")
283 return importlib.import_module(mod_path)
284
285 def apply_plugin(file, plugin):
286 if hasattr(plugin, "get_cond_and_uncond"):

Callers 1

load_server_pluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected