Добавлено простое WSGI (Bottle)

This commit is contained in:
Jack Stdin
2016-02-01 22:29:57 +03:00
parent 63f7827e26
commit e249be24a2
5 changed files with 42 additions and 25 deletions

View File

@@ -1,15 +1,8 @@
# -*- coding: utf-8 -*-
import os
import sys
from aore import phias
# append current dir to module path
reload(sys)
cwd = os.path.dirname(os.path.abspath(__file__))
sys.path.append(cwd)
sys.setdefaultencoding("utf-8")
# sys.path.append('/home/i/interc7j/.local/lib/python2.7/site-packages')
application = phias.app
from aore import aore
application = aore.app
if __name__ == '__main__':
application.run(host='localhost', port=55001, debug=True)