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