From: Armin Ronacher Date: Tue, 8 May 2007 19:50:41 +0000 (+0200) Subject: [svn] fixed bug with caching into same directory if the searchpath was relative X-Git-Tag: 2.0rc1~330 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbcd38c463caf7ad040c34ef0327037399cfe1a2;p=jinja2.git [svn] fixed bug with caching into same directory if the searchpath was relative --HG-- branch : trunk --- 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)