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 s
def make_site_obj ( argdict ) : 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
Instantiate and return the site. This will be used for all commands