Re: [Pyobjc-dev] enumerator support
Brought to you by:
ronaldoussoren
From: <bo...@pa...> - 2003-02-27 20:31:50
|
thanks, this helped alot. the key was sys.path, which showed the difference: for PB: ['/System/Library/Frameworks/Foundation.framework/Versions/C/ Resources', '/Users/rbp/Documents/build projects/Mbox2AB.app/Contents/Resources', '/Users/rbp/Documents/build projects/Mbox2AB.app/Contents/Resources', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-darwin', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages'] command line: ['', '/sw/lib/python2.2', '/sw/lib/python2.2/plat-darwin', '/sw/lib/python2.2/lib-tk', '/sw/lib/python2.2/lib-dynload', '/sw/lib/python2.2/site-packages', '/sw/lib/python2.2/site-packages/PyObjC'] --bob On Thursday, February 27, 2003, at 11:39 AM, Bill Bumgarner wrote: > On Thursday, Feb 27, 2003, at 13:55 US/Eastern, Bob Pasker wrote: >> ok, this works in a command-line program (% python test.py), but >> doesnt >> work inside PB. is there a way to see which version of python is being >> launched by PB? and how to change it? thanks, bob > > Sure. Add something like... > > import sys > print sys.version > > .... to __main__.py. > > It sounds like you probably have a non-Apple build of Python > installed? If you do, that is fine -- if you plan on using it all the > time, I would recommend 'rm -rf > /usr/lib/python2.2/site-packages/...pyobjc stuff...' to avoid > confusion. > > In any case, you can launch one of the Project Template created > projects with an alternative python binary by changing the > PythonBinPath default. > > I do this in PBX by editing the executable and adding... > > -PythonBinPath /usr/local/bin/python > > ... as a launch argument. > > b.bum > > |