mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix #1. Thanks solstice for reporting it.
This commit is contained in:
parent
35dc0bf34c
commit
8b5fbb95f3
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ class Generator(object):
|
||||||
settings = {}
|
settings = {}
|
||||||
self.settings = read_settings(settings)
|
self.settings = read_settings(settings)
|
||||||
self.path = path or self.settings['PATH']
|
self.path = path or self.settings['PATH']
|
||||||
|
if self.path.endswith('/'):
|
||||||
|
self.path = self.path[:-1]
|
||||||
|
|
||||||
self.theme = theme or self.settings['THEME']
|
self.theme = theme or self.settings['THEME']
|
||||||
output_path = output_path or self.settings['OUTPUT_PATH']
|
output_path = output_path or self.settings['OUTPUT_PATH']
|
||||||
self.output_path = os.path.realpath(output_path)
|
self.output_path = os.path.realpath(output_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue