Re: [Pyobjc-dev] Adding python files to PB project
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-01 04:44:20
|
On Thursday, October 31, 2002, at 04:52 PM, Ronald Oussoren wrote: > That's it, nibwrapper.py was not in the list. I've added it manually > and > after rebuilding the latest version of PyObjC with /usr/bin/python > TableModel2 worked correctly again. I updated the source and had a look at the project. nibwrapper.py was listed both in 'Bundle Resources' and in the 'Copy Files' phase. I'd bet PBX had added the file to the 'Copy Files' phase and not the 'Bundle Resources' phase when nibwrapper.py was originally added-- PBX can be confusing like that sometimes. In any case, it would have worked on installation, but fails during a normal build (because the copy files phase only happens during installation with the assumption that a developer machine will have PyObjC installed in the local python distribution). What we really need is a 'rapid turnaround mode' that adds the PBX project's directory to sys.path automatically. WebObjects does this automatically, but the mechanism by which it does so is, well, ummm..., "very interesting". Ideally, a project could have all of the Python files in a 'Copy Files' phase that is only activated on the 'install' target. Prior to that, everything would be found within the project... So much possibility, so little time.... b.bum |