From 620e3d55d1d789cf761360a5882cb4232296543f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 2 Nov 2023 13:38:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8F=92=E4=BB=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=B8=8D=E7=AB=8B=E5=8D=B3=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helper/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper/module.py b/app/helper/module.py index 42af3825..c1bd610a 100644 --- a/app/helper/module.py +++ b/app/helper/module.py @@ -20,13 +20,13 @@ class ModuleHelper: submodules: list = [] importlib.invalidate_caches() packages = importlib.import_module(package_path) - importlib.reload(packages) for importer, package_name, _ in pkgutil.iter_modules(packages.__path__): try: if package_name.startswith('_'): continue full_package_name = f'{package_path}.{package_name}' module = importlib.import_module(full_package_name) + importlib.reload(module) for name, obj in module.__dict__.items(): if name.startswith('_'): continue