Skip to content

Instantly share code, notes, and snippets.

@oogali
Last active November 9, 2016 09:57
Show Gist options
  • Save oogali/7692849 to your computer and use it in GitHub Desktop.
Save oogali/7692849 to your computer and use it in GitHub Desktop.
A template for your Python program, per a blog post from GvR
#!/usr/bin/env python
import sys
def main(argv=None):
if argv is None:
argv = sys.argv
return 0
if __name__ == '__main__':
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment