Apply settings regardless of setup() function

This commit is contained in:
oobabooga 2023-04-25 01:16:23 -03:00
parent ebca3f86d5
commit da812600f4

View File

@ -32,9 +32,9 @@ def load_extensions():
try: try:
exec(f"import extensions.{name}.script") exec(f"import extensions.{name}.script")
extension = getattr(extensions, name).script extension = getattr(extensions, name).script
apply_settings(extension, name)
if extension not in setup_called and hasattr(extension, "setup"): if extension not in setup_called and hasattr(extension, "setup"):
setup_called.add(extension) setup_called.add(extension)
apply_settings(extension, name)
extension.setup() extension.setup()
state[name] = [True, i] state[name] = [True, i]