From 241449337c587cd39f924453764b9a410628dcc3 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 17 Nov 2023 03:01:42 +0800 Subject: [PATCH] chore: tidy codes Signed-off-by: Jack Cherng --- boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]