Improve path detection.

This commit is contained in:
sfigato 2019-08-08 15:29:45 +02:00 committed by blallo
parent 6c16cbb590
commit 969e0b1ae7
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -21,7 +21,7 @@ from api import BASE_URI, DEBUG
alog = logging.getLogger("api") alog = logging.getLogger("api")
routes = web.RouteTableDef() routes = web.RouteTableDef()
OPERATORS = {} # type: T.Dict[T.Text, AsyncOperator] OPERATORS = {} # type: T.Dict[T.Text, AsyncOperator]
BASE_PATH = pkg_resources.resource_filename("api", "assets") BASE_PATH = pkg_resources.resource_filename(__name__, "assets")
async def get_set_operator( async def get_set_operator(