package
spf2acl
Top-level package for Postaccess.
Module that contains the command line app.
Why does this file exist, and why not put this in main?
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 -m spf2acl
python will execute__main__.py
as a script. That means there won't be anyspf2acl.__main__
insys.modules
. - When you import main it will get executed again (as a module) because
there's no
spf2acl.__main__
insys.modules
.
Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration