Update plugins_api.py

This commit is contained in:
Mr Chen
2024-06-15 22:07:27 +08:00
parent af629be9e0
commit ddacecec9a
+2 -1
View File
@@ -1090,7 +1090,8 @@ class plugins_api:
if not os.path.exists(package):
return (False, "插件不存在!")
sys.path.append(package)
if not package in sys.path:
sys.path.append(package)
eval_str = "__import__('" + script + "')." + func + '(' + args + ')'
newRet = eval(eval_str)
if mw.isDebugMode():