diff --git a/kyreport/ky_report.py b/kyreport/ky_report.py index 362d924449e8d9744793af79309fac4365620632..60d847ab71fc47a0fe4d5f3e37f70f45e354dc69 100644 --- a/kyreport/ky_report.py +++ b/kyreport/ky_report.py @@ -83,4 +83,7 @@ class KyReport: info['sys_param'] = self.build_info(Config.get_output_path() + 'sysParamInfo.txt') if os.path.exists(Config.get_output_path() + 'systemMessage.txt'): info['sys_msg'] = self.build_info(Config.get_output_path() + 'systemMessage.txt') + if os.path.exists(Config.get_output_path() + 'hotspotInfo.txt'): + if os.path.getsize(Config.get_output_path() + 'hotspotInfo.txt'): + info['hotspot_info'] = self.build_info(Config.get_output_path() + 'hotspotInfo.txt')