newb: How to call one modue from other

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Dec 6 22:46:29 EST 2006


At Wednesday 6/12/2006 23:20, johnny wrote:

>Can someone also tell me what is the purpose of
>if __name__ == "__main__":

Reading the Python Tutorial helps a lot.

>Do I have to call, main of ftp module within processKick?

Yes, because the original script author didn't want to call a 
function inside that module, instead, he wanted to invoke the module 
as a child program.
Reading the Python Tutorial helps a lot.


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list