Lock loader creation
This commit is contained in:
parent
0da56d7f5c
commit
5910ef8a43
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ except ImportError:
|
|||
json_available = False
|
||||
|
||||
|
||||
from werkzeug import Headers, wrap_file, cached_property
|
||||
from werkzeug import Headers, wrap_file
|
||||
from werkzeug.exceptions import NotFound
|
||||
|
||||
from jinja2 import FileSystemLoader
|
||||
|
|
@ -485,7 +485,7 @@ class _PackageBoundObject(object):
|
|||
"""
|
||||
return os.path.isdir(os.path.join(self.root_path, 'static'))
|
||||
|
||||
@cached_property
|
||||
@locked_cached_property
|
||||
def jinja_loader(self):
|
||||
"""The Jinja loader for this package bound object.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue