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