From 969e0b1ae76b17a5612096cdf47cdb0f1c20ff0b Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 8 Aug 2019 15:29:45 +0200 Subject: [PATCH] Improve path detection. --- api/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/rest.py b/api/rest.py index 913001a..93226ba 100644 --- a/api/rest.py +++ b/api/rest.py @@ -21,7 +21,7 @@ from api import BASE_URI, DEBUG alog = logging.getLogger("api") routes = web.RouteTableDef() 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(