Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43923

unzipping a zipx file

Date 2013-04-19 17:59 +0000
From "b_erickson1" <brian@dashley.net>
Subject unzipping a zipx file
Newsgroups comp.lang.python
Message-ID <mailman.834.1366394500.3114.python-list@python.org> (permalink)

Show all headers | View raw


I have python 2.6.2 and I trying to get it to unzip a file made with winzip pro.  The file extension is zipx.  This is on a windows machine where I have to send them all that files necessary to run.  I am packaging this with py2exe.  I can open the file with 
zFile = zipfile.ZipFile(fullPathName,'r')
and I can look through all the file in the archive 
for filename in zFile.namelist():
but when I write the file out with this code:
            ozFile = open(filename,'w')
            ozFile.write(zFile.read(filename))
            ozFile.close()
that file still looks encrypted.  No errors are thrown.  The file is just a text file not a jpeg or anything else.  I can open the file with 7zip and extract the text file out just fine.  


What am I missing?

Thanks 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

unzipping a zipx file "b_erickson1" <brian@dashley.net> - 2013-04-19 17:59 +0000
  Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:33 +0000
    Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:56 +0000
  Re: unzipping a zipx file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-20 00:24 +0000
    Re: unzipping a zipx file Dave Angel <davea@davea.name> - 2013-04-19 21:50 -0400

csiph-web