[Tutor] command line arguements

alan.gauld@bt.com alan.gauld@bt.com
Fri, 23 Nov 2001 12:26:26 -0000


> how does one tell a python program to pay attention to command line
> data? 

Try looking at my tutor on:

http://www.freenetpages.co.uk/hp/alan.gauld

Under 'Talking to the user'. The bottom half talks about 
command line args.

The short answer is to look at the argv variable 
in the sys module :-)

Alan g.