[issue26344] `sys.meta_path` Skipped for Packages with Non-Standard Suffixed `__init__` Files

Brett Cannon report at bugs.python.org
Thu Feb 11 18:26:07 EST 2016


Brett Cannon added the comment:

As I said, I can't look at your code unless you upload the file separately so I don't know how much help I can be. Did you check sys.modules to make sure the directory had not already been imported or sys.path_importer_cache to make sure the directory didn't already have a finder associated with it? I know sys.meta_path isn't bypassed as that's how the builtin and frozen importer work.

And have you tried this in a newer version of Python? 3.4 is no longer receiving bugfixes so even if there is a problem there it won't be changed. And you should try and use https://docs.python.org/3/library/importlib.html#importlib.util.find_spec instead of find_loader().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26344>
_______________________________________


More information about the Python-bugs-list mailing list