[capi-sig] Import

Dave Brotherstone davegb at pobox.com
Fri Mar 1 18:15:58 CET 2013


On Fri, Mar 1, 2013 at 2:06 PM, ecir hana <ecir.hana at gmail.com> wrote:

> On Thu, Feb 28, 2013 at 10:14 PM, Francis Bolduc <
> francis.bolduc at cm-labs.com
> > wrote:
>
> >
> > The Python interpreter can read zip files.
> >
> > This is what I do myself. I zip the entire Python library and embed it
> > inside my application. Then I extract it at run-time in a temporary
> > directory, then I point the Python interpreter to it using Py_SetPath.
> >
>
> I thought it would be possible to do without the extracting to a temporary
> directory, i.e. doing it all in-memory...
>
>
I'm pretty sure this "just works", you put the name of the zip file in
sys.path, then it will internally open the zip (without extracting to a
temp location) and search for the relevant module - I don't know much
(read: anything) about Py_SetPath, but I'm assuming it's the same.

Dave.


More information about the capi-sig mailing list