From cdc748c14f060a0485ed60643a02a553bf0c0cba 2017-05-17 16:52:02 From: Brett Smith Date: 2017-05-17 16:52:02 Subject: [PATCH] config: Fix type of path passed to cache classes. --- diff --git a/oxrlib/config.py b/oxrlib/config.py index 92dcffcb44cf5486753c6623b9dd26a5450022b7..e4db88d4e17ae2f96dc95327d8081c35b6c28f41 100644 --- a/oxrlib/config.py +++ b/oxrlib/config.py @@ -124,7 +124,7 @@ class Configuration: def _build_cache_loader(self): kwargs = dict(self.conffile.items('Cache')) try: - kwargs['dir_path'] = kwargs.pop('directory') + kwargs['dir_path'] = pathlib.Path(kwargs.pop('directory')) except KeyError: pass self.cache = cache.CacheWriter(**kwargs)