Using Python To Launch Python

Larry Bates larry.bates at websafe.com`
Tue Jul 15 00:27:50 CEST 2008


aha wrote:
> Hello All,
>   I have a situation where I can count on a Python installation being
> available on a system, but I can't count on it being a version of
> Python needed by my application.  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 :)
> 
> Right now I am leaning towards using exec to start a new process, but
> I thought I would check to see if anyone else has had the need to
> perform a task similar to this one.
> 
> AHA

You didn't tell us what operating system, but if by chance it is Windows you 
should use py2exe to package up your program (along with the proper 
pythonXX.dll) into a distributable package.

On Linux, others have posted answers.

-Larry



More information about the Python-list mailing list