mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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.
This commit is contained in:
parent
40c9406ca4
commit
0280e823d3
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue