fix bug
This commit is contained in:
parent
798a737f06
commit
6d4b4c6ba7
@ -216,7 +216,7 @@ class PluginManager(metaclass=Singleton):
|
|||||||
# ID
|
# ID
|
||||||
conf.update({"id": pid})
|
conf.update({"id": pid})
|
||||||
# 安装状态
|
# 安装状态
|
||||||
if pid in installed_apps:
|
if pid in installed_apps and plugin_static:
|
||||||
conf.update({"installed": True})
|
conf.update({"installed": True})
|
||||||
else:
|
else:
|
||||||
conf.update({"installed": False})
|
conf.update({"installed": False})
|
||||||
|
@ -18,8 +18,8 @@ class ModuleHelper:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
submodules: list = []
|
submodules: list = []
|
||||||
|
importlib.invalidate_caches()
|
||||||
packages = importlib.import_module(package_path)
|
packages = importlib.import_module(package_path)
|
||||||
importlib.reload(packages)
|
|
||||||
for importer, package_name, _ in pkgutil.iter_modules(packages.__path__):
|
for importer, package_name, _ in pkgutil.iter_modules(packages.__path__):
|
||||||
try:
|
try:
|
||||||
if package_name.startswith('_'):
|
if package_name.startswith('_'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user