[Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.
Oscar Benjamin
oscar.j.benjamin at gmail.com
Thu Sep 20 01:40:49 CEST 2012
On 19 September 2012 19:00, Gregory Lund <gnj091405 at gmail.com> wrote:
> >>> and then run it from the shell like this:
> On Wed, Sep 19, 2012 at 10:20 AM, Peter Otten <__peter__ at web.de> wrote:
> > Gregory Lund wrote:
>
> >>> and then run it from the shell like this:
> ahh, windows shell, not python shell.
>
> from the directions Peter linked to, I shift-right clicked on the
> folder where my script resided
> (hope that was right)
> then after
> D:\D_Drive_Documents\Scripts\Unzip_a_zip_of_zips\Scripts>
> I typed:python unzip_twice.py 2012-09-18 Lab_2.zip
> Student_Work_Sample_usecopy1
> where:
> unzip_twice.py is the script name as suggested by Steve
> 2012-09-18 Lab_2.zip is the zipfile
> Student_Work_Sample_usecopy1 is the folder the zipfile resides and
> where I want the info extracted to.
>
> Lucky me... NOT...:-)
> I got:
> "'python' is not recognized as an internal or external command,
> operable program or batch file" (without the quotes of course)
>
You need to add the folder where python.exe is to your PATH variable.
First you need to find the folder where python is on your computer. You can
do this from within a python script using the following two lines:
import sys
print sys.executable
Once you've found the folder containing python.exe, add that folder to your
PATH variable:
http://code.google.com/p/tryton/wiki/AddingPythonToWindowsPath
http://showmedo.com/videotutorials/video?name=960000&fromSeriesID=96
Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120920/72999d5e/attachment-0001.html>
More information about the Tutor
mailing list