new to python...

Steve Holden sholden at holdenweb.com
Wed Mar 27 15:55:11 EST 2002


"wilby31" <wilby31 at yahoo.com> wrote in message
news:mailman.1017259391.21846.python-list at python.org...
> Im running Linux and I would like to run a filename.py file..how do I
> go about running this program?  through the command line ?  I have
> version 1.5.2 and I do not have the control to upgrade it.  thanks
>
Either:

1: python filename.py arg1 arg2 ...

or

2: make sure your Python file begins with

#!/usr/bin.env python

then

% chmod +x filename.py
% filename.py arg1 arg2 ...

regards
 Steve







More information about the Python-list mailing list