diff -r e2ec36167151 -r 91aa9bba3dc9 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Jul 21 13:05:37 2020 -0700 +++ b/mercurial/hgweb/webcommands.py Tue Jul 21 13:11:49 2020 -0700 @@ -1319,7 +1319,7 @@ # readable by the user running the CGI script static = web.config(b"web", b"static", untrusted=False) if not static: - tp = web.templatepath or templater.templatepaths() + tp = web.templatepath or templater.templatedir() if isinstance(tp, bytes): tp = [tp] static = [os.path.join(p, b'static') for p in tp]