MCPcopy Index your code
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / register_scripts_from_module

Function register_scripts_from_module

modules/scripts.py:497–505  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

495 syspath = sys.path
496
497 def register_scripts_from_module(module):
498 for script_class in module.__dict__.values():
499 if not inspect.isclass(script_class):
500 continue
501
502 if issubclass(script_class, Script):
503 scripts_data.append(ScriptClassData(script_class, scriptfile.path, scriptfile.basedir, module))
504 elif issubclass(script_class, scripts_postprocessing.ScriptPostprocessing):
505 postprocessing_scripts_data.append(ScriptClassData(script_class, scriptfile.path, scriptfile.basedir, module))
506
507 # here the scripts_list is already ordered
508 # processing_script is not considered though

Callers 1

load_scriptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected