forked from github/pelican
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 = {}
|
||||
self.settings = read_settings(settings)
|
||||
self.path = path or self.settings['PATH']
|
||||
if self.path.endswith('/'):
|
||||
self.path = self.path[:-1]
|
||||
|
||||
self.theme = theme or self.settings['THEME']
|
||||
output_path = output_path or self.settings['OUTPUT_PATH']
|
||||
self.output_path = os.path.realpath(output_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue