Python Path registry Key

Westley Martínez anikom15 at
Fri Feb 18 20:20:20 CET 2011

On Fri, 2011-02-18 at 11:56 +0530, Sathish S wrote:
> Hi Ppl,
> I'm trying to launch IDLE from another application. For this I need
> the python directory path. I have been trying to get the Active Python
> versions path from the Windows registry. However, these registry
> entries seem not be consistent across various stations, that i
> checked. I'm reading the following resitry key to get the active
> versions path: Software\\Microsoft\\Windows\\CurrentVersion\\App Paths
> \\Python.exe. There are two entries in this key. Some stations have
> only one entry. Some do not have both. Probably they were removed
> while python was uninstall ed and was not added again when it was
> installed again.
> So what will be a good solution to get the Python path ?
> Thanks,
> Sathish
Try sys.prefix

More information about the Python-list mailing list