mercurial/hgweb/hgweb_mod.py
changeset 45316 1b983985edd9
parent 45315 2901133ec982
child 45317 c37ab438ff31
equal deleted inserted replaced
45315:2901133ec982 45316:1b983985edd9
    80             ):
    80             ):
    81                 continue
    81                 continue
    82             locations = (os.path.join(style, b'map'), b'map-' + style, b'map')
    82             locations = (os.path.join(style, b'map'), b'map-' + style, b'map')
    83 
    83 
    84             for location in locations:
    84             for location in locations:
    85                 mapfile = os.path.join(path, location)
    85                 mapfile, fp = templater.open_template(location, path)
    86                 if os.path.isfile(mapfile):
    86                 if mapfile:
    87                     return style, mapfile
    87                     return style, mapfile
    88 
    88 
    89     raise RuntimeError(b"No hgweb templates found in %r" % path)
    89     raise RuntimeError(b"No hgweb templates found in %r" % path)
    90 
    90 
    91 
    91