[Tutor] run time parameters
Cris Paltenghe
crisp@wizshop.com
Mon, 26 Feb 2001 13:30:58 -0800
Folks,
I have been trying to learn Python by writing a program that will be useful
at work.
We have been needing some statistics from our log files and I thought I
would write a program to do that.
It basically scans a file for the occurrence of some target strings and
counts them.
For the life of me, I can't figure out how to pass the file name (or a
directory) as a run time parameter.
I have found directory functions, but I would like to know how generally to
pass parameters to a program.
Also, where should I have gone to figure this out?
I have been pouring over all the docs I could find.
Regards,
Cris