'Look for credentials in boto config file.'

def load(self):

    if (self.BOTO_CONFIG_ENV in self._environ):
        potential_locations = [self._environ[self.BOTO_CONFIG_ENV]]
    else:
        potential_locations = self.DEFAULT_CONFIG_FILENAMES
    for filename in potential_locations:
        try:
            config = self._ini_parser(filename)
        except ConfigNotFound:
            continue
        if ('Credentials' in config):
            credentials = config['Credentials']
            if (self.ACCESS_KEY in credentials):
                logger.info('Found    credentials    in    boto    config    file:    %s', filename)
                (access_key, secret_key) = self._extract_creds_from_mapping(credentials, self.ACCESS_KEY, self.SECRET_KEY)
                return Credentials(access_key, secret_key, method=self.METHOD)
