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

Attachment: pgplmkg6rt2dJ.pgp
Description: PGP signature

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to