From 01d32175985f283d6cf52c582aeb7c3fbfcca976 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 22 Dec 2016 15:10:44 +0000 Subject: [PATCH] fix startup --- openlp/core/api/http/endpoint.py | 2 +- openlp/core/api/http/wsgiapp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/api/http/endpoint.py b/openlp/core/api/http/endpoint.py index 37e79a796..7ef7c7ecd 100644 --- a/openlp/core/api/http/endpoint.py +++ b/openlp/core/api/http/endpoint.py @@ -68,7 +68,7 @@ class Endpoint(object): """ Render a mako template """ - root = os.path.join(os.path.join(AppLocation.get_section_data_path('remotes')), 'www') + root = os.path.join(AppLocation.get_section_data_path('remotes')) if not self.template_dir: raise Exception('No template directory specified') path = os.path.join(root, self.template_dir, filename) diff --git a/openlp/core/api/http/wsgiapp.py b/openlp/core/api/http/wsgiapp.py index 0344e8e34..93ccf61be 100644 --- a/openlp/core/api/http/wsgiapp.py +++ b/openlp/core/api/http/wsgiapp.py @@ -138,7 +138,7 @@ class WSGIApplication(object): Add a static directory as a route """ if route not in self.static_routes: - root = os.path.join(os.path.join(AppLocation.get_section_data_path('remotes')), 'www') + root = os.path.join(AppLocation.get_section_data_path('remotes')) self.static_routes[route] = DirectoryApp(os.path.abspath(os.path.join(root, static_dir))) def dispatch(self, request):