remove now useless if __name__ == '__main__' checks and clean up the

old pelican script in bin
This commit is contained in:
Andrea Crotti 2012-03-07 10:38:08 +00:00
commit 8f7b08a01c
6 changed files with 1 additions and 14 deletions

View file

@ -1,3 +0,0 @@
#!/usr/bin/env python
from pelican import main
main()

View file

@ -1 +0,0 @@
@python "%~dpn0" %*

View file

@ -158,7 +158,3 @@ def main():
raise
else:
sys.exit(getattr(e, 'exitcode', 1))
if __name__ == '__main__':
main()

View file

@ -269,6 +269,7 @@ def main():
error("Couldn't create the output folder: " + args.output)
exit()
# TODO: refactor this long assignment
input_type, input, out_markup, output_path, dircat=False = input_type, args.input, args.markup, args.output, args.dircat
if input_type == 'wordpress':

View file

@ -270,6 +270,3 @@ Please answer the following questions so this script can generate the files need
print('Error: {0}'.format(e))
print('Done. Your new project is available at %s' % CONF['basedir'])
if __name__ == '__main__':
main()

View file

@ -212,6 +212,3 @@ def clean(v=False):
c+=1
print("\nRemoved {0} broken links".format(c))
if __name__ == '__main__':
main()