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