From 17d3b3dd1097e22fb561e7c793db75564ed507d1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 8 Jun 2007 13:02:38 +0200 Subject: [PATCH] [svn] fixed package loader in buffet plugin --HG-- branch : trunk --- jinja/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jinja/plugin.py b/jinja/plugin.py index d05c5f8..415a2e0 100644 --- a/jinja/plugin.py +++ b/jinja/plugin.py @@ -39,11 +39,11 @@ class BuffetPlugin(object): memcache_size = opt.pop('memcache_size', 40) cache_folder = opt.pop('cache_folder', None) auto_reload = opt.pop('auto_reload', True) - if 'searchpath' in options: + if 'searchpath' in opt: opt['loader'] = FileSystemLoader(opt.pop('searchpath'), use_memcache, memcache_size, cache_folder, auto_reload) - elif 'package' in options: + elif 'package' in opt: opt['loader'] = PackageLoader(opt.pop('package'), opt.pop('package_path', ''), use_memcache, memcache_size, -- 2.26.2