tags:

views:

64

answers:

1

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
Perfect, thank you.
shaftoe