Show More
@@ -824,7 +824,13 b' def _readmapfile(mapfile):' | |||||
824 |
|
824 | |||
825 | base = os.path.dirname(mapfile) |
|
825 | base = os.path.dirname(mapfile) | |
826 | conf = config.config(includepaths=[templatedir()]) |
|
826 | conf = config.config(includepaths=[templatedir()]) | |
827 | conf.read(mapfile, remap={b'': b'templates'}) |
|
827 | ||
|
828 | def include(rel, abs, remap, sections): | |||
|
829 | data = util.posixfile(abs, b'rb').read() | |||
|
830 | conf.parse(abs, data, sections=sections, remap=remap, include=include) | |||
|
831 | ||||
|
832 | data = util.posixfile(mapfile, b'rb').read() | |||
|
833 | conf.parse(mapfile, data, remap={b'': b'templates'}, include=include) | |||
828 |
|
834 | |||
829 | cache = {} |
|
835 | cache = {} | |
830 | tmap = {} |
|
836 | tmap = {} |
General Comments 0
You need to be logged in to leave comments.
Login now