diff options
-rw-r--r-- | setup.py | 5 | ||||
-rw-r--r-- | whatmaps/__init__.py | 0 | ||||
-rwxr-xr-x | whatmaps/command.py (renamed from whatmaps) | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -20,7 +20,10 @@ setup(name = "whatmaps", author = 'Guido Günther', author_email = 'agx@sigxcpu.org', data_files = data_files, - scripts = [ 'whatmaps' ], + packages = ['whatmaps'], + entry_points = { + 'console_scripts': [ 'whatmaps = whatmaps.command:run' ], + }, ) # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: diff --git a/whatmaps/__init__.py b/whatmaps/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/whatmaps/__init__.py diff --git a/whatmaps b/whatmaps/command.py index cca0701..98de395 100755 --- a/whatmaps +++ b/whatmaps/command.py @@ -602,6 +602,9 @@ def main(argv): return 0 +def run(): + return(main(sys.argv)) + if __name__ == '__main__': sys.exit(main(sys.argv)) |