Re: Extracting file from zip archive in Python 2.6.1

2009-02-05 Thread Brandon Taylor
On Feb 4, 12:16 am, "Gabriel Genellina" wrote: > En Wed, 04 Feb 2009 00:36:40 -0200, Brandon Taylor   > escribió: > > > > > On Feb 3, 1:16 pm, Brandon Taylor wrote: > >> On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > >> > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > >> > escribió: >

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Gabriel Genellina
En Wed, 04 Feb 2009 00:36:40 -0200, Brandon Taylor escribió: On Feb 3, 1:16 pm, Brandon Taylor wrote: On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > escribió: > > zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_path) >

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:15 pm, rdmur...@bitdance.com wrote: > Quoth Brandon Taylor : > > > > > Ok, the first thing I needed to do was add: > > > from __future__ import with_statement at the beginning of my file > > > but: > > > with zip_file.open(zip_name + '/' + thumbnail_image) as source: > >                

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread rdmurray
Quoth Brandon Taylor : > Ok, the first thing I needed to do was add: > > from __future__ import with_statement at the beginning of my file > > but: > > with zip_file.open(zip_name + '/' + thumbnail_image) as source: > with open(os.path.join(thumbnail_path, > thumbnail_image),

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread MRAB
Brandon Taylor wrote: > On Feb 3, 1:16 pm, Brandon Taylor wrote: >> On Feb 3, 9:45 am, "Gabriel Genellina" wrote: >> >> >> >>> En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor >>> escribió: I'm having an issue specifying the path for extracting files from a .zip archive. In my metho

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 1:16 pm, Brandon Taylor wrote: > On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > > > > > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > > escribió: > > > > I'm having an issue specifying the path for extracting files from > > > a .zip archive. In my method, I have: > > > > zip_

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > escribió: > > > I'm having an issue specifying the path for extracting files from > > a .zip archive. In my method, I have: > > > zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_pat

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Gabriel Genellina
En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor escribió: I'm having an issue specifying the path for extracting files from a .zip archive. In my method, I have: zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_path) What is happening is that the extract method is creating a

Extracting file from zip archive in Python 2.6.1

2009-02-02 Thread Brandon Taylor
Hello everyone, I'm having an issue specifying the path for extracting files from a .zip archive. In my method, I have: zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_path) What is happening is that the extract method is creating a folder with the name of 'zip_name' and extracting