Re: [Pyobjc-dev] clean.py doesn't seem to be working?
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2004-05-14 16:56:27
|
On May 14, 2004, at 9:36 AM, Bob Ippolito wrote: > On May 13, 2004, at 1:48 PM, b.bum wrote: >> I can't remember if this ever worked, but I thought that it did. If >> I do: >> >> python clean.py -k --reverse Project\ Templates/Cocoa-Python\ >> Document-based\ Application /tmp/foo >> >> ... the resulting project in /tmp/foo comes up with invalid >> references to the python source files. Oh, wait, that's because we >> aren't dealing with the filenames based on the TemplateInfo.plist. >> >> That'd be a bug. Ugh. I wish I had 40 hour days. > > What do you mean by "filenames based on the TemplateInfo.plist" > exactly? > > If it doesn't work now, it never worked.. I didn't remove any > functionality. Yes. It never worked and it has long been on my TODO list. If you look inside the template .xcode, there is a plist named something like TemplateInfo.plist. It contains the rules for doing substitutions on filenames and matches certain file references with substitution characters in the project file itself. Given that it was written in the context of PyObjC in the first place, we could always use NSDictionary to load the plist and perform/unperform the substitutions as a part of working with the template. b.bum |