Lines Matching refs:directory
128 def __init__(self, directory):
129 self.directory = directory
132 filename = path.join(self.directory, bucket.key)
138 filename = path.join(self.directory, bucket.key)
197 two arguments: The directory where the cache items are stored and a
200 If no directory is specified a default cache directory is selected. On
201 Windows the user's temp directory is used, on UNIX systems a directory
202 is created for the user in the system temp directory.
205 same directory. The default pattern is ``'__jinja2_%s.cache'``. ``%s``
213 def __init__(self, directory=None, pattern='__jinja2_%s.cache'):
214 if directory is None:
215 directory = self._get_default_cache_dir()
216 self.directory = directory
221 raise RuntimeError('Cannot determine safe temp directory. You '
226 # On windows the temporary directory is used specific unless
261 return path.join(self.directory, self.pattern % bucket.key)
283 files = fnmatch.filter(listdir(self.directory), self.pattern % '*')
286 remove(path.join(self.directory, filename))