New submission from igo95862 <igo9...@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@python
components: Documentation
messages: 362790
nosy: docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to