Skip to content
Myr

improved path splitting for win32 systems

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 179b823 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:jinja/loaders.py+3 added
31 unmodified lines
32def get_template_filename(searchpath, name):33 """34 Return the filesystem filename wanted.35 """36 for sep in path.sep, path.altsep:37 if sep and sep in name:38 name = name.replace(sep, '/')39 return path.join(searchpath, *[p for p in name.split('/')40 if p and p[0] != '.'])4142
783 unmodified lines