This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients Wolfgang Richter, brett.cannon, eric.smith, eric.snow, ncoghlan
Date 2016-02-11.23:01:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455231682.98.0.972495621775.issue26344@psf.upfronthosting.co.za>
In-reply-to
Content
I'm at work and so I don't have access to tar on this machine ATM, so I can't look at your code example. But sys.meta_path might be one level above what you want; you might be looking for sys.path_hooks since https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder is what searches entries on sys.path. This also means that if you don't put your finder on sys.meta_path before importlib.machinery.PathFinder then it will never pick up a directory since any directory will always be viewed as a namespace package by that meta path finder.
History
Date User Action Args
2016-02-11 23:01:23brett.cannonsetrecipients: + brett.cannon, ncoghlan, eric.smith, eric.snow, Wolfgang Richter
2016-02-11 23:01:22brett.cannonsetmessageid: <1455231682.98.0.972495621775.issue26344@psf.upfronthosting.co.za>
2016-02-11 23:01:22brett.cannonlinkissue26344 messages
2016-02-11 23:01:22brett.cannoncreate