diff piecrust/processing/util.py @ 999:46025a1b5434

plugins: Support multiple customizable plugins directories. Also add support for specifying the theme directory in some customizable paths.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 21 Nov 2017 09:54:56 -0800
parents cba781477bd0
children 5762a0b821ac
line wrap: on
line diff
--- a/piecrust/processing/util.py	Tue Nov 21 09:54:00 2017 -0800
+++ b/piecrust/processing/util.py	Tue Nov 21 09:54:56 2017 -0800
@@ -74,8 +74,7 @@
             dirname, _ = os.path.split(path)
             info.files = [os.path.join(dirname, f) for f in info.files]
         elif path_mode == 'absolute':
-            info.files = [os.path.join(self.app.root_dir, f)
-                          for f in info.files]
+            info.files = [self.app.resolvePath(f) for f in info.files]
         else:
             raise Exception("Unknown path mode: %s" % path_mode)