From 5212acc027773a3c4aec20719774093b5ca219ff Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 11:20:21 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/superTornado.py b/superTornado.py index e3ee018..a5eb73c 100644 --- a/superTornado.py +++ b/superTornado.py @@ -6,7 +6,7 @@ import tornado.options import time import base64 from urllib import urlopen -import Settings + from tornado.ioloop import PeriodicCallback @@ -14,6 +14,8 @@ from tornado.ioloop import PeriodicCallback from session import * from loadConf import * from login import * +import os +dirname = os.path.dirname(__file__) confAveug = False ficLog = Login() @@ -129,11 +131,9 @@ application = tornado.web.Application([ (r"/unauthorized", UnauthorizedHandler), (r"/disconnection", DisconnectionHandler), (r"/socket", WSocketHandler),], -settings = { - "template_path": Settings.TEMPLATE_PATH, - "static_path": Settings.STATIC_PATH, - }, -cookie_secret="1213215656") + STATIC_PATH = os.path.join(dirname, 'static'), + TEMPLATE_PATH = os.path.join(dirname, 'templates'), + cookie_secret="1213215656") if __name__ == "__main__": hand = LoadConf()