# HG changeset patch # User Ludovic Chabant # Date 1437456158 25200 # Node ID 5ee62af2a4e327b6ad59eb047469795014d68998 # Parent 01f514e9e47a0d6162207b1faa9a36edff075188 themes: Proper template path fixup for the theme configuration. diff -r 01f514e9e47a -r 5ee62af2a4e3 piecrust/app.py --- a/piecrust/app.py Sun Jul 19 17:02:24 2015 -0700 +++ b/piecrust/app.py Mon Jul 20 22:22:38 2015 -0700 @@ -443,8 +443,11 @@ return if isinstance(tplc, str): tplc = [tplc] - sitec['templates_dirs'] = list(filter(tplc, - lambda p: os.path.join(self.theme_dir, p))) + sitec['templates_dirs'] = list( + map( + lambda p: os.path.join(self.theme_dir, p), + tplc)) + config.fixups.append(_fixupThemeTemplatesDir) # We'll also need to flag all page sources as coming from