From bc8c455094e8c2688aee0d442b501c4095112816 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 3 Feb 2025 01:39:51 +0800 Subject: [PATCH] Update index.py --- plugins/clean/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/clean/index.py b/plugins/clean/index.py index bef3597ce..ef382404c 100755 --- a/plugins/clean/index.py +++ b/plugins/clean/index.py @@ -242,7 +242,7 @@ def cleanDirLog(path): def cleanRun(): plugin_dir = getPluginDir() 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) return mw.returnJson(True, '执行成功!')