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