diff -r 4674706b5b95 -r 125c8fedcbe0 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Sun Oct 05 21:35:26 2008 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Oct 17 11:34:31 2008 -0700 @@ -84,11 +84,11 @@ # a static file if virtual.startswith('static/') or 'static' in req.form: - static = os.path.join(templater.templatepath(), 'static') if virtual.startswith('static/'): fname = virtual[7:] else: fname = req.form['static'][0] + static = templater.templatepath('static') return staticfile(static, fname, req) # top-level index