def get_auth_from_conf(here):
    transifex_conf = os.path.join(here, '.transifex.ini')
    config = ConfigParser()
    try:
        with open(transifex_conf, 'r') as conf:
            config.readfp(conf)
    except __HOLE__ as ex:
        sys.exit('Failed to load authentication configuration file.\n'
                 '{0}'.format(ex))
    try:
        username = config.get('auth', 'username')
        password = config.get('auth', 'password')
    except (NoOptionError, NoSectionError) as ex:
        sys.exit('Oops. Incomplete configuration file: {0}'.format(ex))

    return username, password
dataset/ETHPy150Open mblayman/tappy/transifex.py/get_auth_from_conf