This commit is contained in:
j 2014-08-09 23:40:13 +02:00
parent d2465539c8
commit bbb9832de6

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
from __future__ import division, print_function
import os import os
import sys
from tornado.web import Application from tornado.web import Application
from tornado.httpserver import HTTPServer from tornado.httpserver import HTTPServer
@ -59,7 +59,6 @@ def getMetadata(data):
actions.register(getMetadata) actions.register(getMetadata)
def run(): def run():
root_dir = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))
options = { options = {
'debug': True 'debug': True
@ -84,7 +83,7 @@ def run():
else: else:
host = address host = address
url = 'http://%s:%s/' % (host, port) url = 'http://%s:%s/' % (host, port)
print url print(url)
main.start() main.start()
if __name__ == '__main__': if __name__ == '__main__':