Popular recipes tagged "main" but not "mainline"http://code.activestate.com/recipes/tags/main-mainline/2011-07-14T20:42:35-07:00ActiveState Code Recipesentry_point decorator - no more if __name__ == '__main__' (Python) 2011-07-14T20:42:35-07:00yoav glaznerhttp://code.activestate.com/recipes/users/4178625/http://code.activestate.com/recipes/577791-entry_point-decorator-no-more-if-__name__-__main__/ <p style="color: grey"> Python recipe 577791 by <a href="/recipes/users/4178625/">yoav glazner</a> (<a href="/recipes/tags/main/">main</a>, <a href="/recipes/tags/python/">python</a>). Revision 2. </p> <p>Use this decorator to remove the UGLY "if __name__ == '__main__':"</p>