modifié: superTornado.py
This commit is contained in:
parent
ce359a019c
commit
0f9da9fe0f
@ -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()
|
||||
|
Reference in New Issue
Block a user