what happened to sys.prefix in 2.0?

Robert L Hicks bob at wildthink.com
Mon Nov 6 15:49:50 EST 2000


Works on the Mac too...

Python 2.0 (#71, Oct 22 2000, 22:09:24)  [CW PPC w/GUSI2 w/THREADS]
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2000 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.
>>> import sys
>>> sys.prefix
'MACOS9:Applications:Python 2.0:'
>>> sys.exec_prefix
'MACOS9:Applications:Python 2.0:'
>>> 

> From: Guido van Rossum <guido at beopen.com>
> Organization: @Home Network
> Newsgroups: comp.lang.python
> Date: Mon, 06 Nov 2000 19:55:39 GMT
> Subject: Re: what happened to sys.prefix in 2.0?
> 
> 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