Skip to content

Commit

Permalink
Fixes #6 Added __main__ file to pyhgnc
Browse files Browse the repository at this point in the history
  • Loading branch information
LeKono committed Nov 6, 2017
1 parent d337017 commit a077025
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pyhgnc/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-

"""
Entrypoint module, in case you use `python -m pyhgnc`
Why does this file exist, and why __main__? For more info, read:
- https://www.python.org/dev/peps/pep-0338/
- https://docs.python.org/2/using/cmdline.html#cmdoption-m
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
"""

from .cli import main

if __name__ == '__main__':
main()

0 comments on commit a077025

Please sign in to comment.