The exact operation of -m is unclear

May 18, 2023
7:03 p.m.
A simple virtual package could be: # foo.py __path__ = [__file__ + ".d"] But unfortunately this doesn't work with -m: # foo.py.d/__main__.py print("this will never run") (n.b. -m foo.__main__ works but nobody's writing that.) Is it possible to change this backwards-compatibly? If not, is it possible to document it slightly better? Thanks.
648
Age (days ago)
648
Last active (days ago)
0 comments
1 participants
participants (1)
-
Soni L.