mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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
|
|
@ -22,6 +22,9 @@ parser.add_argument('-s', '--settings', dest='settings',
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
files = []
|
files = []
|
||||||
generate_output(args.path, args.templates, args.output, args.markup,
|
try:
|
||||||
|
generate_output(args.path, args.templates, args.output, args.markup,
|
||||||
args.settings)
|
args.settings)
|
||||||
print 'Done !'
|
print 'Done !'
|
||||||
|
except Exception, e:
|
||||||
|
print 'Error ! %s' % e
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,8 @@ def generate_output(path=None, theme=None, output_path=None, markup=None,
|
||||||
markup = markup or context['MARKUP']
|
markup = markup or context['MARKUP']
|
||||||
|
|
||||||
# get the list of files to parse
|
# get the list of files to parse
|
||||||
|
if not path:
|
||||||
|
raise Exception('you need to speciffy a path to search the docs on !')
|
||||||
files = []
|
files = []
|
||||||
for root, dirs, temp_files in os.walk(path, followlinks=True):
|
for root, dirs, temp_files in os.walk(path, followlinks=True):
|
||||||
files.extend([os.sep.join((root, f)) for f in temp_files
|
files.extend([os.sep.join((root, f)) for f in temp_files
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -7,7 +7,7 @@ if sys.version_info < (2,7):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "pelican",
|
name = "pelican",
|
||||||
version = '1.1',
|
version = '1.1.1',
|
||||||
url = 'http://hg.lolnet.org/pelican/',
|
url = 'http://hg.lolnet.org/pelican/',
|
||||||
author = 'Alexis Metaireau',
|
author = 'Alexis Metaireau',
|
||||||
author_email = 'alexis@notmyidea.org',
|
author_email = 'alexis@notmyidea.org',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue