Using Python To Launch Python
Derek Martin
code at pizzashack.org
Mon Jul 14 17:24:54 EDT 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 :)
/usr/local/bin/$APPNAME:
#!/bin/sh
INSTALLPATH=<wherever app is installed>
PATH=$INSTALLPATH/bin:$PATH
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
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20080714/b3bff4bb/attachment.sig>
More information about the Python-list
mailing list