Skip to content

Commit

Permalink
Add a console entry point.
Browse files Browse the repository at this point in the history
Closes #940.
  • Loading branch information
manthey committed Feb 21, 2024
1 parent def6616 commit ab0eff0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions histomicstk/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -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__)))
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)

0 comments on commit ab0eff0

Please sign in to comment.