Massimo DiPierro wrote: > how about a decorator that have the same effect as calling the function > is __name__=='__main__'? I believe several have been written... something like (untested): def main(automagically_run): if __name__ == 'main': automagically_run() return automagically_run # assuming SystemExit wasn't raised ;) ~Ethan~