Re: [Pyobjc-dev] bootstrapping with execve in /bin/sh?
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2002-11-26 23:44:07
|
On dinsdag, nov 26, 2002, at 15:23 Europe/Amsterdam, bb...@ma... wrote: >> Any clues? (googling for "execve" and "sh" only gives me hits for >> execve("/bin/sh", ...); ;-) > > In the child process, argv[0] -- the name of the process -- must > contain the path to the app wrapper or else the resources within can't > be found. If you were to 'print NSBundle.mainBundle().bundlePath()', > you would find that it points to /usr/local/bin/. We could use my trick of a couple of weeks ago: put a symlink to python into the Contents/MacOS directory and use that symlink, I think. (with all the caveats of not being able to switch to another python after creating the applet). -- - 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 - |