changeset 478:5ee62af2a4e3

themes: Proper template path fixup for the theme configuration.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 20 Jul 2015 22:22:38 -0700
parents 01f514e9e47a
children 3b6cbadd0c64
files piecrust/app.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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