(dumpfile, summary_type, summary_data)
| 1696 | EXIT_CODE = 1 |
| 1697 | |
| 1698 | def reportSummary(dumpfile, summary_type, summary_data): |
| 1699 | msg = {'summary': summary_type, 'data': summary_data} |
| 1700 | if '--cli' in sys.argv: |
| 1701 | sys.stdout.write(json.dumps(msg) + '\n') |
| 1702 | else: |
| 1703 | # dumpfile ends with ".dump" |
| 1704 | ctu_info_file = dumpfile[:-4] + "ctu-info" |
| 1705 | with open(ctu_info_file, 'at') as f: |
| 1706 | f.write(json.dumps(msg) + '\n') |
| 1707 | |
| 1708 | |
| 1709 | def get_path_premium_addon(): |