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