Skip to content

Instantly share code, notes, and snippets.

@henryiii
Created June 22, 2013 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henryiii/5841546 to your computer and use it in GitHub Desktop.
Save henryiii/5841546 to your computer and use it in GitHub Desktop.
Python Script Template, copy useful parts.
#!/usr/bin/env python
import argparse
import os
DIR = os.path.realpath(__file__)
parser = argparse.ArgumentParser(description='Send files to web server')
parser.add_argument('-n', '--nochange',
help='make a dry run, don\'t send anything',
action='store_const',
const='n',
default='')
args = parser.parse_args()
os.chdir(DIR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment