Skip to content

Instantly share code, notes, and snippets.

@pazdera
Created June 22, 2011 19:35
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pazdera/1040939 to your computer and use it in GitHub Desktop.
Save pazdera/1040939 to your computer and use it in GitHub Desktop.
Python main template
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
""" Main program """
# Code goes over here.
return 0
if __name__ == "__main__":
main()
@DirkHoffmann
Copy link

sys.exit(main()) ?
(Obviously you would need to import sys for that.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment