Improve internal handling of environment variables

This commit is contained in:
Kristóf Tóth
2018-02-09 09:58:47 +01:00
committed by therealkrispet
parent a933248e90
commit 83b24ad538
10 changed files with 31 additions and 35 deletions

View File

@ -2,9 +2,9 @@ import json, sys
from tornado.ioloop import IOLoop
from tornado.web import RequestHandler, Application
from tfw.config import LOGIN_APP_PORT, WEBIDE_WD
from tfw.config import tfwenv
sys.path.append(WEBIDE_WD)
sys.path.append(tfwenv.WEBIDE_WD)
from login_component import authorize_login
@ -23,5 +23,5 @@ class LoginHandler(RequestHandler):
if __name__ == '__main__':
application = Application([(r'/login', LoginHandler)])
application.listen(LOGIN_APP_PORT)
application.listen(tfwenv.LOGIN_APP_PORT)
IOLoop.instance().start()