................Wed 24.Apr'13 at 8:08:12 +1000, Cameron Simpson................
> On 23Apr2013 06:44, Tim Gray <[email protected]> wrote:
> | I'm guessing that script needs pyobjc installed to work. I'm not
> | quite sure if OS X comes with that preinstalled and/or what versions
> | of OS X have it. So you might need to deal with that.
>
> I think it works out of the box. I'm on Mountain Lion, but all the
> previous revisions worked too. (Um, I do have XCode installed but
> I don't think you need it for this.)
>
> The only issue I've found is using a 3rd party Python as opposed
> to the Python that ships with MacOSX. I use the MacPorts python a
> lot (because I get a bunch of modules from MacPorts) and I have a
> helper module for the pyobjc that tweaks sys.path if necessary:
>
> import sys
> objc_path =
> '/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC'
> if objc_path not in sys.path:
> sys.path.append(objc_path)
>
> It's here if you like:
>
>
> https://bitbucket.org/cameron_simpson/css/src/tip/lib/python/cs/app/osx/objc.py
>
> My related modules just go:
>
> # need to import .objc first to tweak sys.path if necessary
> from .objc import convertObjCtype
>
> to save embedding this guff everywhere.
>
> Cheers,
> --
> Cameron Simpson <[email protected]>
>
> But in our enthusiasm, we could not resist a radical overhaul of the
> system, in which all of its major weaknesses have been exposed, analyzed,
> and replaced with new weaknesses. - Bruce Leverett
Yes, on my Mac I have needed to install the Macports python and use
that, with the benefit of installing other needed modules.
--
James Griffin: jmz at kontrol.kode5.net
jmzgriffin at gmail.com
A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38