From: "Fred L. Drake, Jr." email@example.com
Thomas Heller writes:
Actually it's a little more complicated than this. It does not only need the directory where python.exe is found, it must also make sure this is the correct python version. How can you find out from python.exe?
Good question; I have no idea how to extract that information.
There is a Windows api to find out which pythonxx.dll python.exe binds to, so it should be possible.