From 074faf993f79a4a56966ce5a00c2d147fa828569 Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 22 Mar 2017 20:28:41 +0100 Subject: use ResourceManager API to access web content --- radicale_web/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'radicale_web') diff --git a/radicale_web/__init__.py b/radicale_web/__init__.py index 13aecd4..591ddb3 100644 --- a/radicale_web/__init__.py +++ b/radicale_web/__init__.py @@ -15,6 +15,7 @@ # along with Radicale Web. If not, see . import os +import pkg_resources import posixpath import radicale import time @@ -43,7 +44,7 @@ class Web: def __init__(self, configuration, logger): self.configuration = configuration self.logger = logger - self.folder = os.path.join(os.path.dirname(__file__), "web") + self.folder = pkg_resources.resource_filename(__name__, "web") def get(self, environ, base_prefix, path, user): try: -- cgit