from pathlib import Path


def data_file(path):
    """
    Get a path to a file in the local 'data' directory.
    """
    my_location = Path(__file__).parent
    return str(my_location / 'data' / path)