On Windows, how do I find the path to python.exe from within a script at runtime?
+7
A:
>>> import sys
>>> sys.executable
'C:\\Program Files\\Python31\\pythonw.exe'
SilentGhost
2009-12-04 13:19:49
Perfect, thank you.
shaftoe
2009-12-04 13:22:48