executing a python program by specifying only its name in terminal or command line

bharath venkatesh bharathv6 at gmail.com
Tue Feb 26 03:15:27 EST 2008


hi,
   i wanna run a python program by specifying  only its  name ex prog with
the arguments in the terminal or command line instead of specifying python
prog in the terminal to run the program   not even specifying the it with
.py extension ..
for example i want to run the python program named prog by sepcifying
$prog -arguments
instead of
$python prog -arguments
or
$prog.py -arguments
can anyone tell me how to do it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080226/05e80bc5/attachment.html>


More information about the Python-list mailing list