(file, plugin)
| 283 | return importlib.import_module(mod_path) |
| 284 | |
| 285 | def apply_plugin(file, plugin): |
| 286 | if hasattr(plugin, "get_cond_and_uncond"): |
| 287 | import sdkit.generate.image_generator |
| 288 | |
| 289 | sdkit.generate.image_generator.get_cond_and_uncond = plugin.get_cond_and_uncond |
| 290 | log.info(f"Overridden get_cond_and_uncond with the one in the server plugin: {file}") |
| 291 | |
| 292 | for file in os.listdir(USER_SERVER_PLUGINS_DIR): |
| 293 | file_path = os.path.join(USER_SERVER_PLUGINS_DIR, file) |
no outgoing calls
no test coverage detected