diff -r 8503adbd9d49 -r aa983c3d94a9 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sat Apr 04 10:51:52 2009 +0200 +++ b/mercurial/hgweb/webcommands.py Sat Apr 04 17:46:11 2009 +0200 @@ -7,7 +7,7 @@ import os, mimetypes, re, cgi, copy import webutil -from mercurial import error, archival, templatefilters +from mercurial import error, archival, templater, templatefilters from mercurial.node import short, hex from mercurial.util import binary from common import paritygen, staticfile, get_contact, ErrorResponse @@ -610,7 +610,7 @@ # readable by the user running the CGI script static = web.config("web", "static", None, untrusted=False) if not static: - tp = web.templatepath + tp = web.templatepath or templater.templatepath() if isinstance(tp, str): tp = [tp] static = [os.path.join(p, 'static') for p in tp]