Re: [Pyobjc-dev] Re: [Pyobjc-checkins] CVS: pyobjc/Examples/TableModel2 main.m,1.4,1.5
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2002-11-23 12:56:27
|
On zaterdag, nov 23, 2002, at 07:07 Europe/Amsterdam, Ronald Oussoren wrote: >> What we would need is a standard unix tool that we can give 1 >> argument and that would execute a mangled version of argv[0]. I don't >> think such a tool exists:-) > > sh? Hmm, there is something to be said for that too, as it'll work pre-jaguar too. So now we have three stubs: one in Python, one in ObjC, one in sh (although I would use /bin/sh, bash wasn't available on 10.1), and each one has a specific advantage. How about using the Python stub as the default, but make it easy to use the other stubs, and in the documentation explain about that? [Incidentally, what I was originally really after was a #! line that would immediately execute the *correct* python, so we wouldn't need the execve(). This, I think, is impossible in the general case. But the execve() doesn't seem to be such a big deal anyway on current hardware]. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |