<div class="gmail_quote">On Thu, Jan 15, 2009 at 9:35 AM, Dj Gilcrease <span dir="ltr"><<a href="mailto:digitalxero@gmail.com">digitalxero@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if he just needs to run python scripts you just need to type the<br>
script name (preferably from the directory it is in)<br>
<br>
eg: C:\Path\To\App>app_name.py<br>
<br>
and it will run<br>
</blockquote><div><br>By default, and on most people's machines, not true. You can double-click on a .py script from the GUI, and if your file associations are set correctly then Python (or PythonW) will be invoked - but from the command line, not so much.<br>
<br>HOWEVER: if you add ";.PY;.PYW" to the end of your PATHEXT string, then this will work. (Just tried it out on my machine and wonder why I never did before.)<br><br>Unfortunately, this still requires that Windows be able to find "python.exe" or "pythonw.exe" in the system path... so it's nifty, but doesn't solve the OP's problem.<br>
<br></div></div><br>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>