diff piecrust/sources/base.py @ 84:b3ce11b2cf36

Don't complain about missing `pages` or `posts` directories by default.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 03 Sep 2014 17:26:38 -0700
parents 2fec3ee1298f
children 371a6c879ab9
line wrap: on
line diff
--- a/piecrust/sources/base.py	Mon Sep 01 14:54:34 2014 -0700
+++ b/piecrust/sources/base.py	Wed Sep 03 17:26:38 2014 -0700
@@ -298,6 +298,8 @@
     def buildPageFactories(self):
         logger.debug("Scanning for pages in: %s" % self.fs_endpoint_path)
         if not os.path.isdir(self.fs_endpoint_path):
+            if self.ignore_missing_dir:
+                return
             raise InvalidFileSystemEndpointError(self.name, self.fs_endpoint_path)
 
         for dirpath, dirnames, filenames in os.walk(self.fs_endpoint_path):