Brett Cannon added the comment:

I found the problem: you have a bug in your code at line 45 (the first line of 
WolfPathFinder.find_spec()). When you try and import a top-level package the 
path will always be None since __path__ doesn't exist for a top-level package. 
You only end up with a `path` value when there is a __path__ in the parent 
package. If you put your print() call before the None check it will print out 
that you actually did have the method called.

----------
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26344>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to