diff --git a/boot.py b/boot.py index c0c9125..fa778a3 100644 --- a/boot.py +++ b/boot.py @@ -1,7 +1,7 @@ def reload_plugin() -> None: import sys - # remove all previously loaded plugin modules. + # remove all previously loaded plugin modules prefix = f"{__package__}." for module_name in tuple(filter(lambda m: m.startswith(prefix) and m != __name__, sys.modules)): del sys.modules[module_name]