Currently fusil-python-threaded module finding is a hack in ListAllModules.search_modules, depending on a patched pkgutil.py and not allowing filtering of files. We should:
[x] Revert to pkgutil.iter_modules and avoid needing a patched pkgutil.py.
[ ] Revert to matchModule to filter modules, fixing it if necessary.
[ ] Make sure search_modules returns the same modules as pkgutil.walk_modules would.
[ ] Make sure --only-c, site-packages and the blacklists work correctly.
Currently
fusil-python-threaded
module finding is a hack inListAllModules.search_modules
, depending on a patchedpkgutil.py
and not allowing filtering of files. We should:pkgutil.iter_modules
and avoid needing a patchedpkgutil.py
.matchModule
to filter modules, fixing it if necessary.search_modules
returns the same modules aspkgutil.walk_modules
would.--only-c
,site-packages
and the blacklists work correctly.