From 0f9da9fe0f0a3ca8baa67a705544b747d757d3d6 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 27 Feb 2014 19:55:43 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/superTornado.py b/superTornado.py index 88edd7b..ccf1fce 100644 --- a/superTornado.py +++ b/superTornado.py @@ -2,6 +2,8 @@ import tornado.ioloop import tornado.web import tornado.httpserver +confAveug = False + class MainHandler(tornado.web.RequestHandler): def get(self): self.render("index.html") @@ -19,6 +21,12 @@ application = tornado.web.Application([ ]) if __name__ == "__main__": + #chargement congig + confAveug = hand.estAveugle() + if confAveug == True: + print "->Blind unhabitant system configuration" + else : + print "->Not blind unhabitant system configuration" http_server = tornado.httpserver.HTTPServer(application) http_server.listen(80) tornado.ioloop.IOLoop.instance().start()