From 5be81e4703ef6114b4b8aee7b56874cd5bfa0d5f Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 23 Jun 2016 16:53:58 +0200 Subject: [PATCH] SETUP register cli entry point in setuptools --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index fcc469c..34cd165 100755 --- a/setup.py +++ b/setup.py @@ -104,4 +104,9 @@ setup( ], tests_require=['tox', 'nose', 'scripttest'], cmdclass={'test': Tox}, + entry_points={ + 'console_scripts': [ + 'python-escpos = escpos.cli:main' + ] + }, )