Lines Matching full:__main__
33 pair: module; __main__
42 module, then that package is imported and the :mod:`__main__` submodule within
59 :const:`None`, to ``mod_name + '.__main__'`` if the named module is a
64 ``mod_name + '.__main__'``, never *run_name*).
85 Added ability to execute packages by looking for a :mod:`__main__` submodule.
104 pair: module; __main__
110 :mod:`__main__` module
111 (e.g. a zipfile containing a top-level :file:`__main__.py` file).
116 function then looks for and executes a :mod:`__main__` module using the
118 an existing ``__main__`` entry located elsewhere on ``sys.path`` if
142 ``__spec__`` will be set appropriately for the imported :mod:`__main__`
143 module (that is, ``__spec__.name`` will always be ``__main__``).
169 case where ``__main__`` is imported from a valid :data:`sys.path` entry rather