469,925 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

Re: Using Python To Launch Python

>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.
Simplest case:
>>import os
os.system("/path/to/your/python app.py")
Obviously things can be shortened by adding to the PATH.

Ivan Ven Osdel
Software Engineer

Jul 14 '08 #1
0 714

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

467 posts views Thread by mike420 | last post: by
9 posts views Thread by Jeff Wagner | last post: by
13 posts views Thread by Marcel van den Dungen | last post: by
reply views Thread by Fuzzyman | last post: by
5 posts views Thread by aha | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.