Running a python script under Linux

Andrew Robinson andrew3 at r3dsolutions.com
Thu Dec 13 19:16:13 EST 2012


On 12/13/2012 06:45 PM, Steven D'Aprano wrote:
> What am I doing wrong?
>
>
By the way,  I didn't include command line parameters as part of the 
function definition, so you might want to add them to insure it acts 
like a generic alias.

Also, (alternately), you could define a generic python shell 
script/import with the duty of checking for a compatible python version; 
and if the wrong one is executing --  it could then import the shell 
command execution function, and *fork* the correct version of python on 
the script; then it could exit.

... or whatever.... ;)





More information about the Python-list mailing list