Mercurial > piecrust2
diff piecrust/processing/sass.py @ 666:81d9c3a3a0b5
internal: Get rid of the whole "sub cache" business.
* Compute cache keys up front, so the cache directory is only chosen once.
* Buffer up config variants to apply before loading the config. Makes it
possible to cache variant-resulting configs, too.
* Make a factory class to reuse the logic that creates the `PieCrust` object
correctly for multi-process workers and such.
* Add a test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 03 Mar 2016 08:22:41 -0800 |
parents | a406b75c4bea |
children | 4850f8c21b6e |
line wrap: on
line diff
--- a/piecrust/processing/sass.py Thu Mar 03 08:19:28 2016 -0800 +++ b/piecrust/processing/sass.py Thu Mar 03 08:22:41 2016 -0800 @@ -129,7 +129,7 @@ cache_dir = None if self.app.cache.enabled: - cache_dir = os.path.join(self.app.sub_cache_dir, 'sass') + cache_dir = os.path.join(self.app.cache_dir, 'sass') self._conf.setdefault('cache_dir', cache_dir) def _getMapPath(self, path):