(args)
| 59 | |
| 60 | |
| 61 | def _generate_file_list(args): |
| 62 | path = args.pop('path') |
| 63 | file_path_list = [] |
| 64 | if path.endswith('.xml') and os.path.isfile(path): |
| 65 | file_path_list.append(path) |
| 66 | for (root, dirnames, filenames) in os.walk(path): |
| 67 | for filename in filenames: |
| 68 | if filename.endswith('.xml'): |
| 69 | file_path_list.append(os.path.join(root, filename)) |
| 70 | |
| 71 | return file_path_list |
| 72 | |
| 73 | |
| 74 | def parse_reports(file_path_list): |