[Patches] [ python-Patches-1252550 ] modulefinder misses modules

SourceForge.net noreply at sourceforge.net
Fri Aug 5 14:32:26 CEST 2005


Patches item #1252550, was opened at 2005-08-05 14:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1252550&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: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Thomas Heller (theller)
Summary: modulefinder misses modules

Initial Comment:
Failing top-level imports hide modules with the same
name in packages.

The attached zipfile contains a script main.py and a
simple contrived package demonstrating the problem.

If the zip-archive is unpacked to some directory, and
modulefinder is run in this directory, it prints this:

c:\sf\test>py24 -m modulefinder main.py

  Name                      File
  ----                      ----
m __main__                  main.py
P a                         a\__init__.py
P a.c                       a\c\__init__.py

Missing modules:
? spam imported from __main__, a

c:\sf\test>

With the attached patch, the output is like this:

c:\sf\test>py24 -m modulefinder main.py

  Name                      File
  ----                      ----
m __main__                  main.py
P a                         a\__init__.py
P a.c                       a\c\__init__.py
m a.c.spam                  a\c\spam.py
m a.spam                    a\spam.py

Missing modules:
? spam imported from __main__

c:\sf\test>

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

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


More information about the Patches mailing list