using the zipimporter module from my own C code?

P

Paul Miller

I'm starting to use the nifty 2.3 feature where modules can be bundled into
..zip files. I'd like to bundle additional (text) data files in the same zip
file, and load them in my C code.

Since my Python interpreter is embedded, I was wondering if it is possible
to get access to the zipimporter module and essentially "load" one of my
data files using the zipimporter directly.

Has anyone done this, and if so, can you post some sample code on doing this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,179
Messages
2,570,956
Members
47,509
Latest member
Jack116

Latest Threads

Top