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

PoD pod at internode.on.net
Tue Feb 3 02:39:39 EST 2004


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