def load_regions():
 endpoints = load_endpoint_json(boto.ENDPOINTS_PATH)
 additional_path = None
 if os.environ.get('BOTO_ENDPOINTS'):
  additional_path = os.environ['BOTO_ENDPOINTS']
 elif boto.config.get('Boto', 'endpoints_path'):
  additional_path = boto.config.get('Boto', 'endpoints_path')
 if additional_path:
  additional = load_endpoint_json(additional_path)
  endpoints = merge_endpoints(endpoints, additional)
 return endpoints

def load_regions ( ) : endpoints = load_endpoint_json ( boto . ENDPOINTS_PATH ) additional_path = None if os . environ . get ( 'BOTO_ENDPOINTS' ) : additional_path = os . environ [ 'BOTO_ENDPOINTS' ] elif boto . config . get ( 'Boto' , 'endpoints_path' ) : additional_path = boto . config . get ( 'Boto' , 'endpoints_path' ) if additional_path : additional = load_endpoint_json ( additional_path ) endpoints = merge_endpoints ( endpoints , additional ) return endpoints
actually load the region/endpoint information from the json files .