Using Python To Launch Python
code at pizzashack.org
Mon Jul 14 23:24:54 CEST 2008
On Mon, Jul 14, 2008 at 02:01:04PM -0700, aha wrote:
> Since my application has it's own version of Python installed with
> it how should I use the system Python to launch the version of
> Python that launches my Application. Yes, this is a convoluted
> process, but not all Pythons are built the same :)
INSTALLPATH=<wherever app is installed>
exec $INSTALLPATH/bin/python $APPNAME "$@"
Doesn't get much simpler than that. :) You can certainly do the
equivalent in Python... there's not much difference. Slightly less
typing in bourne/bash shell, I guess...
Derek D. Martin
GPG Key ID: 0x81CFE75D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the Python-list