Re: [Pyobjc-dev] Re: [Pyobjc-checkins] CVS: pyobjc/Examples/TableModel2 main.m,1.4,1.5
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-23 06:08:34
|
On Friday, Nov 22, 2002, at 23:49 Europe/Amsterdam, Jack Jansen wrote: > > On vrijdag, nov 22, 2002, at 22:05 Europe/Amsterdam, Ronald Oussoren > wrote: >> Sounds good, but how are you going to deal with moving the .app >> bundle when not using /usr/bin/python? >> '#!../Resources/python-interpreter' probably won't work. > > Don't even bother trying it: I did, and it doesn't:-) > > 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? #!/bin/bash res=$(dirname $(dirname ${0}))/Resources main=${res}/main.py export PYTHONPATH PYTHONPATH=$res exec /usr/local/bin/python ${main} # end of file The above code is completely untested and doesn't like whitespace in argv[0]. Ronald > -- > - 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 - > > |