Message162239
Not sure what DirsOnSysPath is, but I have been only calling importlib.invalidate_caches() as needed in order to not slow down tests needlessly.
And as for detecting an environment change as necessary, that's essentially impossible since it's only needed if something changed between imports which would require adding a hook to notice that an import happened *and* a directory already covered by sys.path_importer_cache (not sys.path since that doesn't cover packages) changed w/o calling invalidate_caches(). |
|
Date |
User |
Action |
Args |
2012-06-03 23:13:31 | brett.cannon | set | recipients:
+ brett.cannon, rbcollins, r.david.murray, michael.foord, slmnhq, chris.jerdonek, alexgarel |
2012-06-03 23:13:31 | brett.cannon | set | messageid: <1338765211.57.0.283673025083.issue7559@psf.upfronthosting.co.za> |
2012-06-03 23:13:31 | brett.cannon | link | issue7559 messages |
2012-06-03 23:13:30 | brett.cannon | create | |
|