This commit is contained in:
jxxghp
2023-11-02 11:06:37 +08:00
parent 798a737f06
commit 6d4b4c6ba7
2 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ 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('_'):