python executable path name

Trent Mick trentm at ActiveState.com
Sat Nov 18 17:58:16 EST 2000


On Fri, Nov 17, 2000 at 02:44:39PM +0000, Marc Pawlowsky wrote:
> Is there a method in pure python to find the full path of python itself?
> For example c:\python20\python.exe.

>>> import sys
>>> sys.executable
'D:\\apps\\Python20\\python.exe'

Trent

-- 
Trent Mick
TrentM at ActiveState.com




More information about the Python-list mailing list