From fbcd38c463caf7ad040c34ef0327037399cfe1a2 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 8 May 2007 21:50:41 +0200 Subject: [PATCH] [svn] fixed bug with caching into same directory if the searchpath was relative --HG-- branch : trunk --- jinja/loaders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jinja/loaders.py b/jinja/loaders.py index 6836b32..0bebdc3 100644 --- a/jinja/loaders.py +++ b/jinja/loaders.py @@ -273,9 +273,9 @@ class FileSystemLoader(CachedLoaderMixin, BaseLoader): def __init__(self, searchpath, use_memcache=False, memcache_size=40, cache_folder=None, auto_reload=True, cache_salt=None): + self.searchpath = path.abspath(searchpath) if cache_salt is None: - cache_salt = searchpath - self.searchpath = searchpath + cache_salt = self.searchpath CachedLoaderMixin.__init__(self, use_memcache, memcache_size, cache_folder, auto_reload, cache_salt) -- 2.26.2