From efc0d0d10c33bca4f2501af28f8d270f3b511036 Mon Sep 17 00:00:00 2001 From: "Eevee (Alex Munroe)" Date: Fri, 9 Aug 2013 13:11:54 -0700 Subject: [PATCH] Maybe make the setuptools entry point actually work. --- pokedex/main.py | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pokedex/main.py b/pokedex/main.py index 3ba4820..d10f75e 100644 --- a/pokedex/main.py +++ b/pokedex/main.py @@ -28,6 +28,9 @@ def main(*argv): else: command_help() +def setuptools_entry(): + main(*sys.argv) + def get_parser(verbose=True): """Returns an OptionParser prepopulated with the global options. diff --git a/setup.py b/setup.py index 5c71530..a2cef50 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( entry_points = { 'console_scripts': [ - 'pokedex = pokedex.main:main', + 'pokedex = pokedex.main:setuptools_entry', ], }, )