replace pokemon and ichooseyou scripts with proper setuptools cross platform entrypoints

This commit is contained in:
Jimmy O'Rourke 2018-03-25 17:55:30 -04:00 committed by Samuel Henrique
parent 35ef9d5a9a
commit b32905f6fc
4 changed files with 7 additions and 11 deletions

View file

@ -1 +0,0 @@
pokemon

View file

@ -1,8 +0,0 @@
#!/usr/bin/env python3.6
import sys
from pokemonterminal.main import main
main(sys.argv[1:])

View file

@ -55,7 +55,7 @@ def slideshow(filtered, delay, changer_func):
p.join(delay * 60)
def main(argv):
def main(argv=None):
"""Entrance to the program."""
if __name__ != "__main__":
Filter.filtered_list = [pok for pok in Filter.POKEMON_LIST]

View file

@ -50,7 +50,12 @@ Supports ITerm2, Terminology & Tilix.""",
"pokemonterminal": package_data("pokemonterminal", ["Data", "Images"]),
},
scripts=['pokemon', 'ichooseyou'],
entry_points = {
'console_scripts': [
'pokemon = pokemonterminal.main:main',
'ichooseyou = pokemonterminal.main:main',
],
},
keywords="pokemon terminal theme style pokemon-terminal",