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