2025-10-10 09:46:41 +02:00

13 lines
284 B
Python

"""
Used for locating a file in the data directory.
"""
from importlib.resources import files
def data_filename(filename):
"""
Given a relative filename, get the full path to that file in the data
directory.
"""
return files('language_data') / 'data' / filename