nickjillings@1303: import SimpleHTTPServer nickjillings@1303: import SocketServer nickjillings@1303: nickjillings@1303: PORT = 8080 nickjillings@1303: nickjillings@1303: Handler = SimpleHTTPServer.SimpleHTTPRequestHandler nickjillings@1303: nickjillings@1303: httpd = SocketServer.TCPServer(("", PORT), Handler) nickjillings@1303: nickjillings@1303: print "serving at port", PORT nickjillings@1303: httpd.serve_forever()