equal
deleted
inserted
replaced
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 |