can python import class or module directly from a zip package

Coonay flankw at gmail.com
Thu Mar 12 13:28:54 CET 2009


On Mar 11, 9:47 pm, Lorenzo <lolue... at gmail.com> wrote:
> On Mar 10, 2:13 pm, Flank <fla... at gmail.com> wrote:
>
> > can python import class or  module directly from  a zip package ,just
> > like jave does from jar package without extracting the class file into
> > directory
>
> > so far as i know ,python module should be unzip to file system in
> > order to use them,
>
> After a little digging/googling, the answer came right from the docs:
>
> http://docs.python.org/library/zipimport.html
>
> I think that this module is just right what you need.
>
> Cheers!

thanks  you 2 guys



More information about the Python-list mailing list