Use absolute path for importing modules
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user