This commit is contained in:
jxxghp
2023-11-02 11:29:48 +08:00
parent 10fb61bd57
commit 5a0f7ae838
3 changed files with 5 additions and 4 deletions

View File

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