From 618027969e2582da998407214e3437a6687e25b6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 9 Dec 2007 21:51:27 +0100 Subject: [PATCH] improved path splitting for win32 systems --HG-- branch : trunk --- jinja/loaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jinja/loaders.py b/jinja/loaders.py index 09f7dda..b76df4f 100644 --- a/jinja/loaders.py +++ b/jinja/loaders.py @@ -33,6 +33,9 @@ def get_template_filename(searchpath, name): """ Return the filesystem filename wanted. """ + for sep in path.sep, path.altsep: + if sep and sep in name: + name = name.replace(sep, '/') return path.join(searchpath, *[p for p in name.split('/') if p and p[0] != '.']) -- 2.26.2