''' entrypoint.py 2011 JUL 14 @author: Yoav Glazner ''' def entry_point(f): ''' example: @entry_point def main(): print("hello world") ''' if f.__module__ == '__main__': f() return f
Diff to Previous Revision
--- revision 1 2011-07-14 17:57:28 +++ revision 2 2011-07-14 20:42:35 @@ -1,6 +1,5 @@ -**entrypoint.py** - ''' +entrypoint.py 2011 JUL 14 @author: Yoav Glazner '''