@_assure_identity
def set_credential_file(cred_file, region=None, authenticate=True):
 global regions, services
 region = _safe_region(region)
 identity.set_credential_file(cred_file, region=region, authenticate=authenticate)
 regions = tuple(identity.regions)
 services = tuple(identity.services.keys())
 connect_to_services(region=region)

@ _assure_identity def set_credential_file ( cred_file , region = None , authenticate = True ) : global regions , services region = _safe_region ( region ) identity . set_credential_file ( cred_file , region = region , authenticate = authenticate ) regions = tuple ( identity . regions ) services = tuple ( identity . services . keys ( ) ) connect_to_services ( region = region )
read in the credentials from the supplied file path .