Commit 75bad4d880a953fdacdd49c54c757b5922afd8ad
1 parent
f6039234
增加执行环境判断
Showing
1 changed file
with
1 additions
and
1 deletions
commons/scripts/delReport.py
@@ -16,7 +16,7 @@ def delReport(path,delNum=5): | @@ -16,7 +16,7 @@ def delReport(path,delNum=5): | ||
16 | if os.name == "nt": | 16 | if os.name == "nt": |
17 | report_route = os.path.abspath(os.path.join(path, "../")) | 17 | report_route = os.path.abspath(os.path.join(path, "../")) |
18 | else: | 18 | else: |
19 | - report_route = os.path.abspath(os.path.join(path)) | 19 | + report_route = os.path.abspath(os.path.join(path)) |
20 | file_list = os.listdir(report_route + "/report/") | 20 | file_list = os.listdir(report_route + "/report/") |
21 | print("delReport file_lis --- ", file_list) | 21 | print("delReport file_lis --- ", file_list) |
22 | if len(file_list) > delNum: | 22 | if len(file_list) > delNum: |