Skip to content

Commit

Permalink
Fix setuptools entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Feb 2, 2014
1 parent 0ba772a commit 1e1cc47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc2dash/__main__.py
Expand Up @@ -19,6 +19,13 @@
)


def entry_point():
"""
setuptools entry point that calls the real main with arguments.
"""
main(sys.argv[1:]) # pragma: nocover


def main(argv):
"""
Main cli entry point.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -34,7 +34,7 @@ def find_version(*file_paths):
packages=find_packages(exclude=['tests*']),
entry_points={
'console_scripts': [
'doc2dash = doc2dash.__main__:main',
'doc2dash = doc2dash.__main__:entry_point',
],
},
install_requires=open('requirements.txt').read().splitlines(),
Expand Down

0 comments on commit 1e1cc47

Please sign in to comment.