python executable path name
Rodrigo Senra
rodsenra at correionet.com.br
Sat Nov 18 14:34:04 EST 2000
Marc Pawlowsky wrote:
>
> Is there a method in pure python to find the full path of python itself?
> For example c:\python20\python.exe.
This came up very recently. I recommend trying www.deja.com
before posting to the list, but anyway here it goes:
Python 2.0 (#6, Oct 26 2000, 16:42:29)
[GCC 2.95.2 19991024 (release)] on linux2
>>> import sys
>>> sys.exec_prefix
'/usr/local'
HTH
senra
--
Rodrigo Senra
Computer Engineer (GPr Sistemas Ltda) rodsenra at correionet.com.br
MSc Student of Reflection (IC- UNICAMP) Rodrigo.Senra at ic.unicamp.br
http://www.ic.unicamp.br/~921234 (see also http://www.gpr.com.br)
More information about the Python-list
mailing list