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