Update index.py

pull/701/head
Mr Chen 3 months ago
parent 507820d25e
commit bc8c455094
  1. 2
      plugins/clean/index.py

@ -242,7 +242,7 @@ def cleanDirLog(path):
def cleanRun(): def cleanRun():
plugin_dir = getPluginDir() plugin_dir = getPluginDir()
log_file = getServerDir()+'/clean.log' log_file = getServerDir()+'/clean.log'
cmd = 'python3 '+plugin_dir+'/index.py clean > '+log_file cmd = 'cd '+plugin_dir+' && python3 '+plugin_dir+'/index.py clean > '+log_file
os.system(cmd) os.system(cmd)
return mw.returnJson(True, '执行成功!') return mw.returnJson(True, '执行成功!')

Loading…
Cancel
Save