Python import system: Using the -m command line option
The command line option -m runs a module as a script. If the module is a package (that is essentially a directory), it runs (or tries to run) __main__.py.
This is demonstrated with the following simple example: A directory, named minusM, contains three files:
__init__.py,
__main__.py and
mod.py
Their content is one print() statement only: __init__.py: