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 andrea.crotti, brett.cannon, eric.araujo, eric.snow, tarek
Date 2012-02-17.15:51:51
SpamBayes Score 2.0705521e-07
Marked as misclassified No
Message-id <1329493912.94.0.239926837758.issue13991@psf.upfronthosting.co.za>
In-reply-to
Content
It's not working because when you import a.b you calculate __path__ at import time, so when you modify sys.path it won't make a difference since import will look at a.__path__ after your a.b import and simply ignore sys.path. But when you put everything on sys.path upfront and use pkgutil to extend __path__ it sees the other 'a' directory and adds it to __path__.
History
Date User Action Args
2012-02-17 15:51:53brett.cannonsetrecipients: + brett.cannon, tarek, eric.araujo, eric.snow, andrea.crotti
2012-02-17 15:51:52brett.cannonsetmessageid: <1329493912.94.0.239926837758.issue13991@psf.upfronthosting.co.za>
2012-02-17 15:51:52brett.cannonlinkissue13991 messages
2012-02-17 15:51:51brett.cannoncreate