Title: Finders in sys.meta_path do not work for Java modules in
packages Type: Severity: normal Components: Core Versions:
Jython 2.5 Status: open Resolution: remind Dependencies:
Superseder: Assigned To: Nosy List: fwierzbicki, geoffbache,
nonameentername, zyasoft Priority: low Keywords:  Created on
2011-04-26.14:11:01 by geoffbache, last changed
2014-09-17.02:20:34 by zyasoft.  msg6515 (view) Author: Geoff
Bache (geoffbache) Date: 2011-04-26.14:11:01 sys.meta_path is
documented as for CPython, but it only seems to work for imports
of Python modules. For example, if you run this code:  import
sys  class MyFinder:    def find_module(self, name, *args):
print "Checking", name  sys.meta_path = [ MyFinder() ]  print
"Importing xml.sax.handler..." import xml.sax.handler print
"Importing javax.swing..." import javax.swing  and note that
when importing the Python module xml.sax.handler, "find_module"
gets called for every submodule as expected. When importing
javax.swing, it is called only once, on "javax",