On Windows, how do I find the path to python.exe from a script at runtime?
>>> import sys >>> sys.executable 'C:\\Program Files\\Python31\\pythonw.exe'