Created
June 10, 2011 08:56
-
-
Save peterbe/1018510 to your computer and use it in GitHub Desktop.
How do you start all your little python script files?
This file contains 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 | |
def main(*args): | |
return 0 | |
if __name__ == '__main__': | |
import sys | |
sys.exit(main(*sys.argv[1:])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I usually add
# -*- coding:Utf-8 -*-
on line 2