mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 05:10:15 +08:00
populate loaded_extensions from extension list instead
This commit is contained in:
parent
0fc7dc1c04
commit
0d1924c48b
@ -371,9 +371,8 @@ def list_scripts(scriptdirname, extension, *, include_extensions=True):
|
|||||||
# resolve dependencies
|
# resolve dependencies
|
||||||
|
|
||||||
loaded_extensions = set()
|
loaded_extensions = set()
|
||||||
for _, script_data in script_dependency_map.items():
|
for ext in extensions.active():
|
||||||
if script_data['extension'] is not None:
|
loaded_extensions.add(ext.canonical_name)
|
||||||
loaded_extensions.add(script_data['extension'])
|
|
||||||
|
|
||||||
for script_filename, script_data in script_dependency_map.items():
|
for script_filename, script_data in script_dependency_map.items():
|
||||||
# load before requires inverse dependency
|
# load before requires inverse dependency
|
||||||
|
Loading…
Reference in New Issue
Block a user