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