";
self.write("\n".join([svg, imgHtml, statHtml]) )
if __name__ == "__main__":
print("Start server", config)
app = tornado.web.Application([
(r"/", MainHandler),
(r"/colours", ColourHandler),
(r"/thumbs/(\d+.jpg)", tornado.web.StaticFileHandler, {'path': './thumbs/'}),
(r'/images/(.*)', tornado.web.StaticFileHandler, {'path': './images/'}),
], debug=False)
app.listen(config['port'])
tornado.ioloop.IOLoop.current().start()