示例#1
0
 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)
示例#2
0
 def http_server(address, path, log, conf):
     os.chdir(path)
     httpd = TCPServer(address, LoggingHttpHandler)
     httpd._log = log
     httpd._conf = conf
     httpd.serve_forever()