Replacing files in a zip archive
MRAB
google at mrabarnett.plus.com
Thu Apr 30 10:15:10 EDT 2009
Дамјан Георгиевски wrote:
> I'm writing a script that should modify ODF files. ODF files are just
> .zip archives with some .xml files, images etc.
>
> So far I open the zip file and play with the xml with lxml.etree, but I
> can't replace the files in it.
>
> Is there some recipe that does this ?
>
You'll have to create a new zip file and copy the files into that.
More information about the Python-list
mailing list