Brett Cannon added the comment: I should also mention that subclassing importlib.abc.PathEntryFinder solves this coding problem. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20763> _______________________________________