MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / iter_importer_modules

Function iter_importer_modules

tools/python-3.11.9-amd64/Lib/pkgutil.py:137–140  ·  view source on GitHub ↗
(importer, prefix='')

Source from the content-addressed store, hash-verified

135
136@simplegeneric
137def iter_importer_modules(importer, prefix=''):
138 if not hasattr(importer, 'iter_modules'):
139 return []
140 return importer.iter_modules(prefix)
141
142
143# Implement a file walker for the normal importlib path hook

Callers 1

iter_modulesFunction · 0.85

Calls 1

iter_modulesMethod · 0.80

Tested by

no test coverage detected