mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-29 06:15:12 +00:00
Improve internal handling of environment variables
This commit is contained in:
committed by
therealkrispet
parent
a933248e90
commit
83b24ad538
@ -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()
|
||||
|
Reference in New Issue
Block a user