PEP 338: Executing modules inside packages with '-m'
Martin Bless
mb at muenster.de
Tue Dec 14 15:15:16 EST 2004
[Nick Coghlan <ncoghlan at iinet.net.au>]
>Python 2.4's -m command line switch only works for modules directly on sys.path.
On my Windows machine this command line switch really makes my life so
much easier. I appreciate -m very much. Going further as proposed in
PEP 338 sounds good to me.
One thing I stumbled across with the current implementation:
Why doesn't "python -m abc" work with
./abc/
./abc/__init__.py
assuming ./abc/ is directly on the path? In analogy to normal module
import?
mb - Martin
More information about the Python-list
mailing list