Skip to content

Commit ad60e77

Browse files
committed
[lbuild] No normpath in windosify/posixify filters
1 parent 893479a commit ad60e77

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

repo.lb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,15 @@ def init(repo):
244244
# Add Jinja2 filters commonly used in this repository
245245
if 'Windows' in platform.platform():
246246
def windowsify(path, escape_level):
247-
path = normpath(path)
248247
escaped = "\\" * (2 ** escape_level)
249248
return path.replace("\\", escaped)
250249
def posixify(path):
251-
return normpath(path).replace("\\", "/")
250+
return path.replace("\\", "/")
252251
else:
253252
def windowsify(path, escape_level):
254-
return normpath(path)
253+
return path
255254
def posixify(path):
256-
return normpath(path)
255+
return path
257256
repo.add_filter("modm.windowsify", windowsify)
258257
repo.add_filter("modm.posixify", posixify)
259258
repo.add_filter("modm.ord", lambda letter: ord(letter[0].lower()) - ord("a"))

0 commit comments

Comments
 (0)