from pathlib import Path


def simctl_result(name):
    """Load a simctl result file from the sample directory, and return the content"""
    filename = Path(__file__).parent / 'simctl' / '{name}.json'.format(name=name)
    with filename.open() as f:
        return f.read()