Capturing the entry point of a script

SamG mad.vijay at gmail.com
Thu Apr 12 14:09:25 CEST 2007


If a function does not have main function defined and there is only a

if __name__="__main__":

how do i make a call to that using

profile.runcall( ...)

in my profiling script. Is there a way to find the entry point of a
script and indentify it with module method.




More information about the Python-list mailing list