mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
If the PATH settings is set to a non-absolute path, then use normalize it relative to the settings file. This should probably be done for other settings aswell
This commit is contained in:
parent
83a61da255
commit
fee2b50cb9
1 changed files with 6 additions and 0 deletions
|
|
@ -74,5 +74,11 @@ def read_settings(filename):
|
|||
else:
|
||||
log.warn("LOCALE option doesn't contain a correct value")
|
||||
|
||||
# Make the paths relative to the settings file
|
||||
for path in ['PATH']:
|
||||
if path in context:
|
||||
if 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
|
||||
return context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue