diff -r 56193b37f666 -r 8f246bc7059d lib/templates.py --- a/lib/templates.py Sun Dec 28 13:45:59 2008 -0500 +++ b/lib/templates.py Sun Dec 28 15:19:40 2008 -0500 @@ -1,8 +1,8 @@ from htmltmpl import TemplateManager, TemplateProcessor from urlparse import urljoin from os import environ, path +from config import template_dir -TEMPLATE_DIR = "templates" def get_curl(): url = "http" if environ["HTTPS"] == 'on': @@ -15,7 +15,7 @@ class Template: def __init__(self, template, prefs, status = "msg", status_msg = ""): self.tproc = TemplateProcessor() - self.tmpl = TemplateManager().prepare(path.join(TEMPLATE_DIR, template)) + self.tmpl = TemplateManager().prepare(path.join(template_dir, template)) self.set("remote_user", prefs["fullname"]) self.set("kw_size", prefs['keywords_box']) self.set("kw_sort", prefs['keywords_sort'])