what happened to sys.prefix in 2.0?

Robert L Hicks bob at wildthink.com
Mon Nov 6 16:58:06 EST 2000


I am downloading the OSX tar.gz as I write this.  : )

> From: Chris Gehlker <gehlker at fastq.com>
> Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED
> Newsgroups.
> Newsgroups: comp.lang.python
> Date: Mon, 06 Nov 2000 14:25:31 -0700
> Subject: Re: what happened to sys.prefix in 2.0?
> 
> And on OS X...
> [localhost:~] chrisg% python
> Python 2.0 (#3, 10/22/00, 12:04:10)
> [GCC Apple DevKit-based CPP 5.0] on Darwin1.2
> Type "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.prefix
> '/usr/local'
>>>> sys.exec_prefix
> '/usr/local'
>>>> 
> 
> 
> On 11/6/00 1:49 PM, in article B62C84D2.4A7F%bob at wildthink.com, "Robert L
> Hicks" <bob at wildthink.com> wrote:
> 
>> 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/)
>> 
> 
> 
> 
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----




More information about the Python-list mailing list