diff --git a/src/omi/cli.py b/src/omi/cli.py index 0a891c0..6b4d0aa 100644 --- a/src/omi/cli.py +++ b/src/omi/cli.py @@ -6,7 +6,7 @@ You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - - When you run `python -momi` python will execute + - When you run `python -m omi` python will execute ``__main__.py`` as a script. That means there won't be any ``omi.__main__`` in ``sys.modules``. - When you import __main__ it will get executed again (as a module) because @@ -14,6 +14,7 @@ Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration """ + import click