diff --git a/histomicstk/cli/__main__.py b/histomicstk/cli/__main__.py new file mode 100644 index 000000000..054666ceb --- /dev/null +++ b/histomicstk/cli/__main__.py @@ -0,0 +1,9 @@ +import os + +from slicer_cli_web import ctk_cli_adjustment # noqa +import slicer_cli_web.cli_list_entrypoint # noqa I001 + + +def main(): + slicer_cli_web.cli_list_entrypoint.CLIListEntrypoint( + cwd=os.path.dirname(os.path.realpath(__file__))) diff --git a/setup.py b/setup.py index 008b3d911..da4e7af57 100644 --- a/setup.py +++ b/setup.py @@ -84,5 +84,8 @@ 'Topic :: Software Development :: Libraries :: Python Modules', ], zip_safe=False, + entry_points={ + 'console_scripts': ['histomicstk = histomicstk.cli.__main__:main'], + }, python_requires='>=3.8', )