fix startup

This commit is contained in:
Tim Bentley 2016-12-22 15:10:44 +00:00
parent b6a7a1f929
commit 01d3217598
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class Endpoint(object):
""" """
Render a mako template 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: if not self.template_dir:
raise Exception('No template directory specified') raise Exception('No template directory specified')
path = os.path.join(root, self.template_dir, filename) path = os.path.join(root, self.template_dir, filename)

View File

@ -138,7 +138,7 @@ class WSGIApplication(object):
Add a static directory as a route Add a static directory as a route
""" """
if route not in self.static_routes: 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))) self.static_routes[route] = DirectoryApp(os.path.abspath(os.path.join(root, static_dir)))
def dispatch(self, request): def dispatch(self, request):