Skip to content
package

spf2acl

Top-level package for Postaccess.

module

spf2acl.main

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 any spf2acl.__main__ in sys.modules.
  • When you import main it will get executed again (as a module) because there's no spf2acl.__main__ in sys.modules.

Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration

Functions
  • main(args) (int) Console script for spf2acl.</>