Commit 14b45b8b9b75791fcbde21ef1b9f6977bb5b50f5
1 parent
4579f14e
更新delReport文件
Showing
1 changed file
with
1 additions
and
1 deletions
commons/scripts/delReport.py
... | ... | @@ -22,7 +22,7 @@ def delReport(path,delNum=5): |
22 | 22 | file_list = os.listdir(report_path) |
23 | 23 | print("befor sort file_lis --- ", file_list) |
24 | 24 | if len(file_list) > delNum: |
25 | - file_list.sort(key=lambda file_name: os.path.getmtime(report_path + "\\" + file_name)) | |
25 | + file_list.sort(key=lambda file_name: os.path.getmtime(report_path + file_name)) | |
26 | 26 | print("after sort file_lis --- ", file_list) |
27 | 27 | file_list = file_list[:0-delNum] |
28 | 28 | # print("if file_lis --- ",file_list) | ... | ... |