mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-27 06:10:29 +00:00
replace pokemon and ichooseyou scripts with proper setuptools cross platform entrypoints
This commit is contained in:
parent
35ef9d5a9a
commit
b32905f6fc
4 changed files with 7 additions and 11 deletions
|
@ -1 +0,0 @@
|
||||||
pokemon
|
|
8
pokemon
8
pokemon
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env python3.6
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from pokemonterminal.main import main
|
|
||||||
|
|
||||||
|
|
||||||
main(sys.argv[1:])
|
|
|
@ -55,7 +55,7 @@ def slideshow(filtered, delay, changer_func):
|
||||||
p.join(delay * 60)
|
p.join(delay * 60)
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv=None):
|
||||||
"""Entrance to the program."""
|
"""Entrance to the program."""
|
||||||
if __name__ != "__main__":
|
if __name__ != "__main__":
|
||||||
Filter.filtered_list = [pok for pok in Filter.POKEMON_LIST]
|
Filter.filtered_list = [pok for pok in Filter.POKEMON_LIST]
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -50,7 +50,12 @@ Supports ITerm2, Terminology & Tilix.""",
|
||||||
"pokemonterminal": package_data("pokemonterminal", ["Data", "Images"]),
|
"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",
|
keywords="pokemon terminal theme style pokemon-terminal",
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue