Message410093
Maybe,
"""
This won’t work for __main__.py files in the root directory of a .zip file though. Thus, for consistency, it is usually preferred to place code in other modules. That code can then be invoked from a minimal ``__main__.py``.
"""
(And then the see-also opens, "See venv for an example of a package with a minimal __main__.py in the standard library." which is a natural extension of the discussion.)
@taleinat's suggestion works as well (crossed streams). |
|
Date |
User |
Action |
Args |
2022-01-08 10:49:21 | ferdnyc | set | recipients:
+ ferdnyc, eric.araujo, docs@python, jacksonbrummell1 |
2022-01-08 10:49:21 | ferdnyc | set | messageid: <1641638961.01.0.453931025008.issue46279@roundup.psfhosted.org> |
2022-01-08 10:49:20 | ferdnyc | link | issue46279 messages |
2022-01-08 10:49:20 | ferdnyc | create | |
|