aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwfjsw <wfjsw@users.noreply.github.com>2023-11-11 04:03:55 -0600
committerwfjsw <wfjsw@users.noreply.github.com>2023-11-11 04:03:55 -0600
commit0d1924c48be3d02650e87b12a4f53165a8b4a599 (patch)
treecdfef2f1cb1a7aafd1b4d865018826029de34ee1
parent0fc7dc1c04a046d95588651ffc4e71a7d40378d3 (diff)
populate loaded_extensions from extension list instead
-rw-r--r--modules/scripts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index e92a34a0..7cdf288d 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -371,9 +371,8 @@ def list_scripts(scriptdirname, extension, *, include_extensions=True):
# resolve dependencies
loaded_extensions = set()
- for _, script_data in script_dependency_map.items():
- if script_data['extension'] is not None:
- loaded_extensions.add(script_data['extension'])
+ for ext in extensions.active():
+ loaded_extensions.add(ext.canonical_name)
for script_filename, script_data in script_dependency_map.items():
# load before requires inverse dependency