Replacing files in a zip archive
google at mrabarnett.plus.com
Thu Apr 30 16:15:10 CEST 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