def http_server(address, path, error, log, conf): try: os.chdir(path) httpd = TCPServer(address, HttpHandler) httpd._log = log httpd._conf = conf httpd.serve_forever() except Exception as e: error.value = str(e)
def http_server(address, path, log, conf): os.chdir(path) httpd = TCPServer(address, LoggingHttpHandler) httpd._log = log httpd._conf = conf httpd.serve_forever()