Author igo95862
Recipients docs@python, igo95862
Date 2020-02-27.09:53:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582797188.41.0.932040725136.issue39774@roundup.psfhosted.org>
In-reply-to
Content
This is package documentation: https://docs.python.org/3/tutorial/modules.html#packages


To make package executable (python -m package) you need to create a file __main__.py  in the package directory.


This is pretty much not documented anyone aside of trying to run a package missing __main__.py


This page already contains information on how to make module executable. (https://docs.python.org/3/tutorial/modules.html#executing-modules-as-scripts)
History
Date User Action Args
2020-02-27 09:53:08igo95862setrecipients: + igo95862, docs@python
2020-02-27 09:53:08igo95862setmessageid: <1582797188.41.0.932040725136.issue39774@roundup.psfhosted.org>
2020-02-27 09:53:08igo95862linkissue39774 messages
2020-02-27 09:53:08igo95862create