On 19 September 2012 19:00, Gregory Lund <gnj091...@gmail.com> wrote:
> >>> and then run it from the shell like this: > On Wed, Sep 19, 2012 at 10:20 AM, Peter Otten <__pete...@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
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor