[Import-SIG] New PEP draft: "Simplified Package Layout and Partitioning"

P.J. Eby pje at telecommunity.com
Wed Aug 24 15:18:48 CEST 2011

At 03:05 PM 8/24/2011 +0200, Greg Slodkowicz wrote:
>So that means that a module that has no __path__ defined is causing 
>importlib to pass something other than None for a 'path' argument. 
>Didn't you add some argument to meta_path importers? That could be 
>triggering the failure.Â
>Okay, this was in fact quite simple, _gcd_import() didn't need to 
>initialise the path passed to the importers with sys.path: 
>Thanks for the tip, it helped me a lot. This means all unittests now 
>pass (minus the 5 mentioned earlier).

By the way, do any of your tests make sys.path changes and check 
whether virtual packages' __path__ attributes are updated accordingly?

More information about the Import-SIG mailing list