cleanup
This commit is contained in:
parent
d2465539c8
commit
bbb9832de6
1 changed files with 2 additions and 3 deletions
|
@ -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__':
|
||||||
|
|
Loading…
Reference in a new issue