mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update plugins_api.py
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user