From eaa0bb72906c801455a0bd9c74bed37cc688bfa8 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 23 Nov 2021 17:11:49 +0800 Subject: [PATCH] Update index.py --- plugins/clean/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/clean/index.py b/plugins/clean/index.py index 044989795..98e5a5d20 100755 --- a/plugins/clean/index.py +++ b/plugins/clean/index.py @@ -92,9 +92,9 @@ def get_filePath_fileName_fileExt(filename): def cleanFileLog(path): filepath, shotname, extension = get_filePath_fileName_fileExt(path) if extension == ".log": - cmd = "echo \"\" >> " + path + cmd = "echo \"\" > " + path print(cmd) - mw.execShell(cmd) + print(mw.execShell(cmd)) def cleanDirLog(path): @@ -130,7 +130,6 @@ def cleanLog(): mw.execShell(i) l = os.listdir(rootDir) - # print(l) for x in range(len(l)): abspath = rootDir + "/" + l[x] if os.path.isfile(abspath):