Posted By

blackthorne on 03/10/10


Tagged

template python blackthorne


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

blackthorne


Python Script runnable Skeleton with main()


 / Published in: Python
 

A simple skeleton for python scripts with utf-8 encoding

  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3.  
  4. def main():
  5. pass
  6.  
  7. if __name__ == '__main__':
  8. main()

Report this snippet  

You need to login to post a comment.