mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #134 from derdon/master
[1 line change] check only paths (i.e. not None) for being absolute when reading the settings
This commit is contained in:
commit
84ab2059d7
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def read_settings(filename):
|
|||
# Make the paths relative to the settings file
|
||||
for path in ['PATH', 'OUTPUT_PATH']:
|
||||
if path in context:
|
||||
if not os.path.isabs(context[path]):
|
||||
if context[path] is not None and not os.path.isabs(context[path]):
|
||||
context[path] = os.path.abspath(os.path.normpath(os.path.join(os.path.dirname(filename), context[path])))
|
||||
|
||||
# set the locale
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue