what happened to sys.prefix in 2.0?

Guido van Rossum guido at beopen.com
Mon Nov 6 14:55:39 EST 2000


Bill Janssen <w.janssen at ieee.org> writes:

> Well, I decided to jump right from 1.5.2 to 2.0.  Perhaps a mistake.

No.  For mistakes, try 1.6. :-)

> I find that a number of config things seem to have broken, since 2.0
> doesn't seem to export sys.prefix or sys.exec_prefix.  Any idea where
> I can find these?  I grepped src/Misc/NEWS for them, but no luck.

Huh?  They exist just fine for me:

    Python 2.0 (#254, Oct 18 2000, 10:57:31) 
    [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
    Type "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> sys.prefix
    '/usr/local'
    >>> sys.exec_prefix
    '/usr/local'
    >>> 

Similar on Windows.

On what platform did you compile?

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list