1
0
Fork 0
forked from github/pelican

Merge pull request #1947 from magul/tuple-fix

Fix issue with one-element tuple
This commit is contained in:
Justin Mayer 2016-09-22 16:10:12 -06:00 committed by GitHub
commit 9d4c140c49

View file

@ -151,7 +151,7 @@ def read_settings(path=None, override=None):
and not isabs(local_settings[p]):
absp = os.path.abspath(os.path.normpath(os.path.join(
os.path.dirname(path), local_settings[p])))
if p not in ('THEME') or os.path.exists(absp):
if p != 'THEME' or os.path.exists(absp):
local_settings[p] = absp
if 'PLUGIN_PATH' in local_settings: