mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Maybe make the setuptools entry point actually work.
This commit is contained in:
parent
d022e9a8bf
commit
efc0d0d10c
2 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,9 @@ def main(*argv):
|
||||||
else:
|
else:
|
||||||
command_help()
|
command_help()
|
||||||
|
|
||||||
|
def setuptools_entry():
|
||||||
|
main(*sys.argv)
|
||||||
|
|
||||||
|
|
||||||
def get_parser(verbose=True):
|
def get_parser(verbose=True):
|
||||||
"""Returns an OptionParser prepopulated with the global options.
|
"""Returns an OptionParser prepopulated with the global options.
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -16,7 +16,7 @@ setup(
|
||||||
|
|
||||||
entry_points = {
|
entry_points = {
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'pokedex = pokedex.main:main',
|
'pokedex = pokedex.main:setuptools_entry',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue