Update plugins_api.py

pull/604/head
Mr Chen 11 months ago
parent af629be9e0
commit ddacecec9a
  1. 1
      class/core/plugins_api.py

@ -1090,6 +1090,7 @@ class plugins_api:
if not os.path.exists(package): if not os.path.exists(package):
return (False, "插件不存在!") return (False, "插件不存在!")
if not package in sys.path:
sys.path.append(package) sys.path.append(package)
eval_str = "__import__('" + script + "')." + func + '(' + args + ')' eval_str = "__import__('" + script + "')." + func + '(' + args + ')'
newRet = eval(eval_str) newRet = eval(eval_str)

Loading…
Cancel
Save