home dashboard use XOS_DIR instead of hardcoded paths
diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py
index c58c51f..4270d6d 100644
--- a/planetstack/core/dashboard/views/home.py
+++ b/planetstack/core/dashboard/views/home.py
@@ -25,8 +25,8 @@
return self.singleDashboardView(request, name, context)
def readTemplate(self, fn):
- TEMPLATE_DIRS = ["/opt/planetstack/templates/admin/dashboard/",
- "/opt/planetstack/core/xoslib/dashboards/"]
+ TEMPLATE_DIRS = [XOS_DIR + "/templates/admin/dashboard/",
+ XOS_DIR + "/core/xoslib/dashboards/"]
for template_dir in TEMPLATE_DIRS:
pathname = os.path.join(template_dir, fn) + ".html"