1
0
Fork 0
forked from github/pelican

Print errors if errors occurs :) Force to have a path specified.

This commit is contained in:
Alexis Metaireau 2010-08-19 14:48:58 +02:00
commit 4bff6ebeeb
3 changed files with 8 additions and 3 deletions

View file

@ -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