#!/usr/bin/env python3 import os import sys import time from report_file_path import report_filepath while not os.path.isfile(report_filepath): time.sleep(0.01) sys.stdout.write( 'Content-Type: text/html\r\n\r\n' '
\n' 'CSP report received:' ) report_file = open(report_filepath, 'r') for line in report_file.readlines(): sys.stdout.write('