forked from github/pelican
bugfix: if block with absp in THEMES was wronlgy indented
if the local absp variable was used earlier in the code, it would override the path set in THEMES
This commit is contained in:
parent
b00d9ef6d1
commit
45945e6142
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ def read_settings(path=None, override=None):
|
|||
for p in local_settings['THEMES']:
|
||||
if not isabs(local_settings['THEMES'][p]):
|
||||
absp = os.path.abspath(os.path.normpath(os.path.join(os.path.dirname(path), local_settings['THEMES'][p])))
|
||||
if os.path.exists(absp):
|
||||
local_settings['THEMES'][p] = absp
|
||||
if os.path.exists(absp):
|
||||
local_settings['THEMES'][p] = absp
|
||||
else:
|
||||
local_settings = copy.deepcopy(DEFAULT_CONFIG)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue