code: def make_site_obj(argdict):
      '''Instantiate and return the site. This will be used for all commands'''
      d = os.getcwd() #'.'
      if 'directory' in argdict:
          d = argdict['directory']
      try:
          s = s2site.Site(d)
      except:
          print "Could not instantiate site object."
          sys.exit()
      return f make_site_obj(argdict):
      '''Instantiate and return the site. This will be used for all commands'''
      d = os.getcwd() #'.'
      if 'directory' in argdict:
          d = argdict['directory']
      try:
          s = s2site.Site(d)
      except:
          print "Could not instantiate site object."
          sys.exit()
      return s
docs: Instantiate and return the site. This will be used for all commands