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