Run python file -- what function is main?
Posted
by Jasie
on Stack Overflow
See other posts from Stack Overflow
or by Jasie
Published on 2010-04-29T01:52:04Z
Indexed on
2010/04/29
1:57 UTC
Read the original article
Hit count: 382
python
I have simple python script, 'first.py':
#first.py
def firstFunctionEver() :
print "hello"
firstFunctionEver()
I want to call this script using : python first.py
and have it call the firstFunctionEver()
. But, the script is ugly -- what function can I put the call to firstFunctionEver()
in and have it run when the script is loaded?
© Stack Overflow or respective owner