config: Fix type of path passed to cache classes.

This commit is contained in:
Brett Smith 2017-05-17 12:52:02 -04:00
parent 620816fe72
commit cdc748c14f

View file

@ -124,7 +124,7 @@ class Configuration:
def _build_cache_loader(self): def _build_cache_loader(self):
kwargs = dict(self.conffile.items('Cache')) kwargs = dict(self.conffile.items('Cache'))
try: try:
kwargs['dir_path'] = kwargs.pop('directory') kwargs['dir_path'] = pathlib.Path(kwargs.pop('directory'))
except KeyError: except KeyError:
pass pass
self.cache = cache.CacheWriter(**kwargs) self.cache = cache.CacheWriter(**kwargs)