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 berker.peksag, brett.cannon, ncoghlan
Date 2012-11-18.01:20:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353201643.54.0.0984643586286.issue16497@psf.upfronthosting.co.za>
In-reply-to
Content
It actually does work, you just have to embed the subdirectory in the path you pass to zipimport.zipimporter():

>>> importer = zipimport.zipimporter('zipimport_example.zip/package/')
>>> importer.find_module('package.eggs')
<zipimporter object "modules.zip/package/">
History
Date User Action Args
2012-11-18 01:20:43brett.cannonsetrecipients: + brett.cannon, ncoghlan, berker.peksag
2012-11-18 01:20:43brett.cannonsetmessageid: <1353201643.54.0.0984643586286.issue16497@psf.upfronthosting.co.za>
2012-11-18 01:20:43brett.cannonlinkissue16497 messages
2012-11-18 01:20:43brett.cannoncreate