populate loaded_extensions from extension list instead

This commit is contained in:
wfjsw 2023-11-11 04:03:55 -06:00
parent 0fc7dc1c04
commit 0d1924c48b

View File

@ -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