My wxpython program uses 2 data files, a db file and a log file. I
would like to combine those two files into a single zip archive file
which could be used in the wxpython program. The idea would be to have
the ability to create "new" files which would be new zip files
containing a db and a log file so that the file pairs always stay
together. It is not clear to me whether this is feasible or not. As
far as I can tell, the wx.ZipFSHANDLER is read only so I guess I could
use the python zipfile module to create the zip files. Would that
work? Is there a better way of handling this?
My wxpython program uses 2 data files, a db file and a log file. I
would like to combine those two files into a single zip archive file
which could be used in the wxpython program. The idea would be to have
the ability to create "new" files which would be new zip files
containing a db and a log file so that the file pairs always stay
together. It is not clear to me whether this is feasible or not. As
far as I can tell, the wx.ZipFSHANDLER is read only so I guess I could
use the python zipfile module to create the zip files. Would that
work? Is there a better way of handling this?
Thanks.
sure the python zipfile module is great I've just converted my program's save format to using it, it;'s good
On Thu, Dec 24, 2009 at 12:43 PM, Glenn Johnson <glennpj@gmail.com> wrote:
My wxpython program uses 2 data files, a db file and a log file. I
would like to combine those two files into a single zip archive file
which could be used in the wxpython program. The idea would be to have
the ability to create "new" files which would be new zip files
containing a db and a log file so that the file pairs always stay
together. It is not clear to me whether this is feasible or not. As
far as I can tell, the wx.ZipFSHANDLER is read only so I guess I could
use the python zipfile module to create the zip files. Would that
work? Is there a better way of handling this?
Thanks to those who responded and thanks for the script.
···
On Sat, Dec 26, 2009 at 10:49 PM, Josh English <joshua.r.english@gmail.com> wrote:
Steven is right. Here's the very simple ZIP archive manager I use for
projects. Feel free to adapt.
Josh
On Thu, Dec 24, 2009 at 12:43 PM, Glenn Johnson <glennpj@gmail.com> wrote:
My wxpython program uses 2 data files, a db file and a log file. I
would like to combine those two files into a single zip archive file
which could be used in the wxpython program. The idea would be to have
the ability to create "new" files which would be new zip files
containing a db and a log file so that the file pairs always stay
together. It is not clear to me whether this is feasible or not. As
far as I can tell, the wx.ZipFSHANDLER is read only so I guess I could
use the python zipfile module to create the zip files. Would that
work? Is there a better way of handling this?