Question about 'if __name__ == "__main__":'

sean sean_berry at cox.net
Tue Feb 3 02:50:19 EST 2004


Thanks....

exactly what I was looking for.

"PoD" <pod at internode.on.net> wrote in message
news:pan.2004.02.03.07.39.39.54419 at internode.on.net...
> On Mon, 02 Feb 2004 23:33:42 -0800, Amy G wrote:
>
> > I have a program that needs a little help.
> > Right now the program runs in my crontab.  When it runs, it sets a few
> > variables based on a query to a MySQL database.  I would like to modify
it
> > so that it can run as it is... or if arguments are supplied, use those
> > instead of querrying the database.
> >
>
> Hint: len(sys.argv)
>





More information about the Python-list mailing list