How can I:
- Check if Python is installed on a machine and, if it is, then
- Get the executable path to it?
Note: I’m fine with it being Python, IronPython, etc… Just anything that I can pass a .py file and have it run it.
I could hard code some paths (e.g. C:\Program Files (x86)\Iron Python… ), but I’d like something more elegant, if it exists.
Examining this registry key works alright:
If it’s not there, then I just ask the user.