mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-05 23:49:57 +00:00
Gradio 4 + WebUI 1.10
This commit is contained in:
@@ -4,11 +4,15 @@ import importlib.util
|
||||
from modules import errors
|
||||
|
||||
|
||||
loaded_scripts = {}
|
||||
|
||||
|
||||
def load_module(path):
|
||||
module_spec = importlib.util.spec_from_file_location(os.path.basename(path), path)
|
||||
module = importlib.util.module_from_spec(module_spec)
|
||||
module_spec.loader.exec_module(module)
|
||||
|
||||
loaded_scripts[path] = module
|
||||
return module
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user