Re: Why does Python never add itself to the Windows path?
- From: Gabriel Genellina <gagsl-py@xxxxxxxxxxxx>
- Date: Tue, 02 Jan 2007 15:20:41 -0300
At Tuesday 2/1/2007 13:58, Ben Sizer wrote:
> Notice that there is NO need to alter the system path. You just have
> to tell Windows where python.exe resides; there is a per-application
> path located at
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths.
>From what I can tell, that is solely for file associations. If so, it
will work if you type "setup.py install" but not if you type "python
setup.py install". For instance, I have an entry for Firefox in that
part of the registry, but if you try executing "firefox" at the command
line, it fails.
Typing "start firefox" at the command line should work.
It appears that cmd.exe does *not* use ShellExecute to find the executable, so this approach doesn't work as expected :(
--
Gabriel Genellina
Softlab SRL
__________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas
.
- References:
- Re: Why does Python never add itself to the Windows path?
- From: Gabriel Genellina
- Re: Why does Python never add itself to the Windows path?
- From: Ben Sizer
- Re: Why does Python never add itself to the Windows path?
- Prev by Date: Re: How do I add users using Python scripts on a Linux machine
- Next by Date: Re: DOS, UNIX and tabs
- Previous by thread: Re: Why does Python never add itself to the Windows path?
- Next by thread: Re: Why does Python never add itself to the Windows path?
- Index(es):
Relevant Pages
|