I have a system with many versions of python. Some are 32b some 64b, some 2.4 some 2.7, etc. I am working with a python script that needs to run another python script. I want to run the 2nd script with the same version of python that the initial script was run with.
My plan is to do something like this:
os.system('%s script.py' % currentPython)
The question is: How do I define "currentPython"?