Determining python installation prefix

James C. Ahlstrom jim at interet.com
Tue Oct 5 08:27:05 EDT 1999


Dave Cole wrote:
> 
> I have some Python modules that I want to install via Makefile on a
> number of boxes.  On the Linux box, the installation prefix is /usr,
> whereas on Solaris and FreeBSD, the prefix is /usr/local.

Try looking at sys.executable.  It is the path to the
interpreter.  Also try sys.prefix.

Jim Ahlstrom




More information about the Python-list mailing list