Launching different interpreters

Johan Fredrik Ohman johanfo at ohman.no
Mon Oct 13 09:27:46 EDT 2003


Hi, I'd like to use the newest interpreter if available.  I tried a little
bash scripting, but with no success.
Is there some easy way to check a list of possible interpreters and path,
and when found run the script with that program?

Something like this:
#!/usr/bin/python2.3
If not found:
#!/usr/bin/python2.2






More information about the Python-list mailing list