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