<br><br><div class="gmail_quote">On 19 September 2012 19:00, Gregory Lund <span dir="ltr"><<a href="mailto:gnj091405@gmail.com" target="_blank">gnj091405@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">>>> and then run it from the shell like this:<br>
</div><div class="im">On Wed, Sep 19, 2012 at 10:20 AM, Peter Otten <__<a href="mailto:peter__@web.de">peter__@web.de</a>> wrote:<br>
> Gregory Lund wrote:<br>
<br>
>>> and then run it from the shell like this:<br>
</div>ahh, windows shell, not python shell.<br>
<br>
from the directions Peter linked to, I shift-right clicked on the<br>
folder where my script resided<br>
(hope that was right)<br>
then after<br>
D:\D_Drive_Documents\Scripts\Unzip_a_zip_of_zips\Scripts><br>
I typed:python unzip_twice.py 2012-09-18 Lab_2.zip Student_Work_Sample_usecopy1<br>
where:<br>
unzip_twice.py is the script name as suggested by Steve<br>
2012-09-18 Lab_2.zip is the zipfile<br>
Student_Work_Sample_usecopy1 is the folder the zipfile resides and<br>
where I want the info extracted to.<br>
<br>
Lucky me... NOT...:-)<br>
I got:<br>
"'python' is not recognized as an internal or external command,<br>
operable program or batch file" (without the quotes of course)<br></blockquote><div><br></div><div>You need to add the folder where python.exe is to your PATH variable.</div><div><br></div><div>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:</div>
<div>import sys</div><div>print sys.executable</div><div><br></div><div>Once you've found the folder containing python.exe, add that folder to your PATH variable:</div><div><a href="http://code.google.com/p/tryton/wiki/AddingPythonToWindowsPath">http://code.google.com/p/tryton/wiki/AddingPythonToWindowsPath</a></div>
<div><a href="http://showmedo.com/videotutorials/video?name=960000&fromSeriesID=96">http://showmedo.com/videotutorials/video?name=960000&fromSeriesID=96</a></div><div><br></div><div>Oscar</div></div>