[New-bugs-announce] [issue39774] Missing documentation on how to make package executable as script

igo95862 report at bugs.python.org
Thu Feb 27 04:53:08 EST 2020


New submission from igo95862 <igo9586 at gmail.com>:

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)

----------
assignee: docs at python
components: Documentation
messages: 362790
nosy: docs at python, igo95862
priority: normal
severity: normal
status: open
title: Missing documentation on how to make package executable as script
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39774>
_______________________________________


More information about the New-bugs-announce mailing list