Locate python home
thoaan at stud.cs.uit.no
Wed Feb 25 10:43:42 CET 2004
> import sys
> print sys.executable
Thanks, but there is still one problem:
This leads to the path C:\python\Python23\pythonw.exe. In my application I
cannot use pythonw.exe, I need python.exe (console reasons). Is there some
way to get this instead?
If not, would it be ok to assume that python.exe will always reside in the
same directory as pythonw.exe?
More information about the Python-list