Piping stdout to Python callable

Rich Krauter rmkrauter at yahoo.com
Wed Aug 18 07:05:13 CEST 2004

Rich Krauter wrote:

> [silly post snipped]

Oh, duh. You you said you need to invoke the code in  the
if __name__ == '__main__': part of the code. Sorry, I saw your post 
yesterday and didn't register that then. Obviously my suggestion doesn't 
help you.

Well, unless A.py looks something like

def main():

if __name__ == '__main__:


More information about the Python-list mailing list