forked from github/pelican
Print errors if errors occurs :) Force to have a path specified.
This commit is contained in:
parent
eaff78bed7
commit
4bff6ebeeb
3 changed files with 8 additions and 3 deletions
|
|
@ -48,6 +48,8 @@ def generate_output(path=None, theme=None, output_path=None, markup=None,
|
|||
markup = markup or context['MARKUP']
|
||||
|
||||
# get the list of files to parse
|
||||
if not path:
|
||||
raise Exception('you need to speciffy a path to search the docs on !')
|
||||
files = []
|
||||
for root, dirs, temp_files in os.walk(path, followlinks=True):
|
||||
files.extend([os.sep.join((root, f)) for f in temp_files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue