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