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