Skip to content
Myr

[svn] fixed bug with caching into same directory if the searchpath was relative

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 ce513f2 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja/loaders.py+2 added-2 removed
271 unmodified lines
272 """273274 def __init__(self, searchpath, use_memcache=False, memcache_size=40,275 cache_folder=None, auto_reload=True, cache_salt=None):276 self.searchpath = path.abspath(searchpath)277 if cache_salt is None:277 cache_salt = searchpath278 self.searchpath = searchpath278 cache_salt = self.searchpath279 CachedLoaderMixin.__init__(self, use_memcache, memcache_size,280 cache_folder, auto_reload, cache_salt)281282 def get_source(self, environment, name, parent):
229 unmodified lines