|
|
@ -92,9 +92,9 @@ def get_filePath_fileName_fileExt(filename): |
|
|
|
def cleanFileLog(path): |
|
|
|
def cleanFileLog(path): |
|
|
|
filepath, shotname, extension = get_filePath_fileName_fileExt(path) |
|
|
|
filepath, shotname, extension = get_filePath_fileName_fileExt(path) |
|
|
|
if extension == ".log": |
|
|
|
if extension == ".log": |
|
|
|
cmd = "echo \"\" >> " + path |
|
|
|
cmd = "echo \"\" > " + path |
|
|
|
print(cmd) |
|
|
|
print(cmd) |
|
|
|
mw.execShell(cmd) |
|
|
|
print(mw.execShell(cmd)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def cleanDirLog(path): |
|
|
|
def cleanDirLog(path): |
|
|
@ -130,7 +130,6 @@ def cleanLog(): |
|
|
|
mw.execShell(i) |
|
|
|
mw.execShell(i) |
|
|
|
|
|
|
|
|
|
|
|
l = os.listdir(rootDir) |
|
|
|
l = os.listdir(rootDir) |
|
|
|
# print(l) |
|
|
|
|
|
|
|
for x in range(len(l)): |
|
|
|
for x in range(len(l)): |
|
|
|
abspath = rootDir + "/" + l[x] |
|
|
|
abspath = rootDir + "/" + l[x] |
|
|
|
if os.path.isfile(abspath): |
|
|
|
if os.path.isfile(abspath): |
|
|
|