From 0280e823d3ee2348d834e827bf6673b4347a976d Mon Sep 17 00:00:00 2001 From: Bill Anderson Date: Fri, 27 Jun 2014 12:38:03 -0500 Subject: [PATCH] Fixes #1382 A quick test to determine if the incoming path is a simple string, and if so convert to a single item list with said string. This ensures older configs will work as they did prior to the multiple paths commit. If the old behavior is deprecated, I would suggest documenting it as such and perhaps adding a deprecation warning here. --- pelican/generators.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pelican/generators.py b/pelican/generators.py index 865cc6f8..64b91373 100644 --- a/pelican/generators.py +++ b/pelican/generators.py @@ -120,6 +120,8 @@ class Generator(object): extensions are allowed) """ files = [] + if type(paths) == type(''): + paths = [paths] for path in paths: root = os.path.join(self.path, path)