new to python...

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Mar 27 15:58:04 EST 2002


On 27-Mar-2002 wilby31 wrote:
> 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 
> 

make sure the first line of the file looks like:

#!/usr/bin/python

(the path may be different)

then you do 'chmod +x filename.py'.  Now you can run it by typing
'./filename.py' or '/path/to/filename.py'.




More information about the Python-list mailing list