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