Message153554
| 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:53 | brett.cannon | set | recipients:
+ brett.cannon, tarek, eric.araujo, eric.snow, andrea.crotti |
| 2012年02月17日 15:51:52 | brett.cannon | set | messageid: <1329493912.94.0.239926837758.issue13991@psf.upfronthosting.co.za> |
| 2012年02月17日 15:51:52 | brett.cannon | link | issue13991 messages |
| 2012年02月17日 15:51:51 | brett.cannon | create |
|