Created
June 22, 2011 19:35
-
-
Save pazdera/1040939 to your computer and use it in GitHub Desktop.
Python main template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
def main(): | |
""" Main program """ | |
# Code goes over here. | |
return 0 | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sys.exit(main())
?(Obviously you would need to
import sys
for that.)