[Tutor] Shebang (#!) in the first line of a python script
davea at ieee.org
Tue Oct 13 22:54:32 CEST 2009
> You were right. I did not have .PY/.PYW in my PATHEXT. I have put it
> in as
> suggested. I do have python.exe in my path so that should take care
> of things.
> Messing around with the windows registry isn't something I want to
> tackle just yet so I will save that for later.
> Thank you for your help,
You don't have to directly mess with the registry. But if you just
enter the script name, you are causing the registry lookups just the
same. As I said, the install took care of it for you, and you shouldn't
have to change till you have two installs.
But to re-iterate: When you run a script this way, the PATH is *not*
used to look up the Python.exe, but only to search for the script.
More information about the Tutor