[ python-Bugs-1241619 ] -m does not find dotted modules

SourceForge.net noreply at sourceforge.net
Wed Jul 20 17:06:25 CEST 2005


Bugs item #1241619, was opened at 2005-07-20 15:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1241619&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Giles Antonio Radford (mewf)
Assigned to: Nobody/Anonymous (nobody)
Summary: -m does not find dotted modules

Initial Comment:
-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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1241619&group_id=5470


More information about the Python-bugs-list mailing list