This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: -m does not find dotted modules
Type: enhancement Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: mewf, rhettinger
Priority: normal Keywords:

Created on 2005-07-20 15:06 by mewf, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg54588 - (view) Author: Giles Antonio Radford (mewf) Date: 2005-07-20 15:06
-m does not appear to find modules that are referenced
to with dots on windows:

D:\Python24\Lib\site-packages>python -m found
python: module found not found

D:\Python24\Lib\site-packages>echo print 'found!' >
found.py

D:\Python24\Lib\site-packages>python -m found
found!

D:\Python24\Lib\site-packages>mkdir directory

D:\Python24\Lib\site-packages>move found.py directory

D:\Python24\Lib\site-packages>del found.pyc
Could Not Find D:\Python24\Lib\site-packages\found.pyc

D:\Python24\Lib\site-packages>python -m found
python: module found not found

D:\Python24\Lib\site-packages>python -m directory.found
python: module directory.found not found

D:\Python24\Lib\site-packages>python  directory\found.py
found!

D:\Python24\Lib\site-packages>

This should use the standard python finding mechanism
to cope with dotted packages. Also with package\__init__.py
msg54589 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-07-20 17:54
Logged In: YES 
user_id=80475

The initial implementation of -m was intentionally confined
to the simplest case.  The issues pertaining to packages are
dealt with through the PEP process:
   http://www.python.org/peps/pep-0338.html
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42203
2005-07-20 15:06:25mewfcreate