Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 7288:9c399c53469d
Allow per-file shadowing of static directory in templatepath
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 28 Oct 2008 22:24:17 -0700 |
parents | 810ca383da9c |
children | 591767e6ea7a |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Tue Oct 28 21:58:30 2008 -0700 +++ b/mercurial/hgweb/webcommands.py Tue Oct 28 22:24:17 2008 -0700 @@ -583,10 +583,7 @@ tp = web.templatepath if isinstance(tp, str): tp = [tp] - for path in tp: - static = os.path.join(path, 'static') - if os.path.isdir(static): - break + static = [os.path.join(p, 'static') for p in tp] return [staticfile(static, fname, req)] def graph(web, req, tmpl):