##// END OF EJS Templates
templater: swap `\` with `/` in more location...
marmoute -
r48638:981cef51 stable
parent child Browse files
Show More
@@ -833,6 +833,13 b' def _open_mapfile(mapfile):'
833
833
834 def _readmapfile(fp, mapfile):
834 def _readmapfile(fp, mapfile):
835 """Load template elements from the given map file"""
835 """Load template elements from the given map file"""
836 if pycompat.iswindows:
837 # quick hack to make sure we can process '/' in the code dealing with
838 # ressource. Ideally we would make sure we use `/` instead of `ossep`
839 # in the templater code, but that seems a bigger and less certain
840 # change that we better left for the default branch.
841 name_paths = mapfile.split(pycompat.ossep)
842 mapfile = b'/'.join(name_paths)
836 base = os.path.dirname(mapfile)
843 base = os.path.dirname(mapfile)
837 conf = config.config()
844 conf = config.config()
838
845
General Comments 0
You need to be logged in to leave comments. Login now