mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
remove now useless if __name__ == '__main__' checks and clean up the
old pelican script in bin
This commit is contained in:
parent
7c78f232b4
commit
8f7b08a01c
6 changed files with 1 additions and 14 deletions
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
from pelican import main
|
||||
main()
|
||||
|
|
@ -1 +0,0 @@
|
|||
@python "%~dpn0" %*
|
||||
|
|
@ -158,7 +158,3 @@ def main():
|
|||
raise
|
||||
else:
|
||||
sys.exit(getattr(e, 'exitcode', 1))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -212,6 +212,3 @@ def clean(v=False):
|
|||
c+=1
|
||||
|
||||
print("\nRemoved {0} broken links".format(c))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue