(MAC) CoreGraphics module???

Robert Kern robert.kern at gmail.com
Sat Nov 3 21:14:50 CET 2007

David C. Ullrich wrote:
> On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern
> <robert.kern at gmail.com> wrote:
>> David C. Ullrich wrote:
>>> [...]
>>> So CoreGraphics is a builtin in Apple-Python,
>>> explaining why I didn't find the relevant
>>> CoreGraphics.py anywhere on the hard drive, eh?
>> Okay, which version of OS X do you have? In 10.3 and 10.4 it used to be here:
>> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/CoreGraphics.py
> I'm using 10.4. Yesterday I checked that there is indeed a
> /System/Library/Frameworks/Python.framework
> but I didn't look any deeper because I already "knew"
> that CoreGraphics.py wasn't there. Come to think of
> it, it could well be that it's there and I didn't find
> it because Spotlight didn't want to show me things
> inside /System? I'll check. (I'll check "soon" -
> again, I'm at home and the Mac's at the office.)

Possibly. The "locate" command on the terminal is usually more reliable.

>> I notice that in 10.5, it no longer exists, though.
>>> [How do I get to the Python I want?]
>> Python-Python installed a couple of symlinks into /usr/local/bin and then put
>> /usr/local/bin in the front of your $PATH environment variable so it gets picked
>> up first on the terminal. For my Python-Python 2.5, I have
>>  python
>>  python2.5
>>  pythonw
>>  pythonw2.5
>>  python-config
>>  python2.5-config
>> Remove these and then when you type "python" at the terminal, you will get
>> /usr/bin/python, which points to the Apple-Python.
> Thanks. Right this second I have no idea _where_ I should
> go to "remove" that, but I can probably find out. It's
> in .bashrc or somewhere, I bet, No, don't tell me...

$ rm /usr/local/bin/python /usr/local/bin/python2.5 ...

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the Python-list mailing list