diff options
author | Unrud <unrud@openaliasbox.org> | 2017-03-22 20:28:41 +0100 |
---|---|---|
committer | Unrud <unrud@openaliasbox.org> | 2017-03-22 20:28:41 +0100 |
commit | 074faf993f79a4a56966ce5a00c2d147fa828569 (patch) | |
tree | b5f0eb0f99d3e22747f7351b25114a3ddb29c3ac /radicale_web | |
parent | InfCloud: Disable update checks (diff) | |
download | radicaleinfcloud-074faf993f79a4a56966ce5a00c2d147fa828569.tar.gz radicaleinfcloud-074faf993f79a4a56966ce5a00c2d147fa828569.tar.bz2 radicaleinfcloud-074faf993f79a4a56966ce5a00c2d147fa828569.zip |
use ResourceManager API to access web content
Diffstat (limited to 'radicale_web')
-rw-r--r-- | radicale_web/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. 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: |