<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_ability_desc(ability):
 """Return the description matching the given ability name. Check abilities.json in the same directory."""

    srcpath = path.dirname(__file__)
    try:
        f = open(path.join(srcpath, 'abilities.json'), 'r')
    except IOError:
        get_abilities()
        f = open(path.join(srcpath, 'abilities.json'), 'r')
    finally:
        with f:
            return json.load(f)[ability].encode('utf-8')