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