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