Use absolute path for importing modules

This commit is contained in:
Sheng
2018-04-26 22:38:03 +08:00
parent f78588bcc1
commit ffb776ca6c
9 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import paramiko
import tornado.web
from tornado.ioloop import IOLoop
from worker import Worker, recycle_worker, workers
from webssh.worker import Worker, recycle_worker, workers
try:
from concurrent.futures import Future
+3 -3
View File
@@ -3,9 +3,9 @@ import tornado.web
import tornado.ioloop
from tornado.options import parse_command_line, options
from handler import IndexHandler, WsockHandler
from settings import (get_app_settings, get_host_keys_settings,
get_policy_setting)
from webssh.handler import IndexHandler, WsockHandler
from webssh.settings import (get_app_settings, get_host_keys_settings,
get_policy_setting)
def make_handlers(loop, options):
+3 -1
View File
@@ -3,7 +3,9 @@ import os.path
import uuid
from tornado.options import define
from policy import load_host_keys, get_policy_class, check_policy_setting
from webssh.policy import (
load_host_keys, get_policy_class, check_policy_setting
)
define('address', default='127.0.0.1', help='listen address')