ai-content-maker/.venv/Lib/site-packages/language_data/util.py

16 lines
347 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
"""
Used for locating a file in the data directory.
"""
from pkg_resources import resource_filename
DATA_ROOT = resource_filename('language_data', 'data')
import os
def data_filename(filename):
"""
Given a relative filename, get the full path to that file in the data
directory.
"""
return os.path.join(DATA_ROOT, filename)