Commit 0d1924c4 authored by wfjsw's avatar wfjsw

populate loaded_extensions from extension list instead

parent 0fc7dc1c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment