Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created June 10, 2011 08:56
Show Gist options
  • Save peterbe/1018510 to your computer and use it in GitHub Desktop.
Save peterbe/1018510 to your computer and use it in GitHub Desktop.
How do you start all your little python script files?
#!/usr/bin/env python
def main(*args):
return 0
if __name__ == '__main__':
import sys
sys.exit(main(*sys.argv[1:]))
@AdrienLemaire
Copy link

I usually add # -*- coding:Utf-8 -*- on line 2

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