Michele De Stefano
Adapted the code so that it can run locally
1b8aef5
raw
history blame contribute delete
410 Bytes
import importlib.resources
from pathlib import Path
def get_file_path(file_name: str) -> str:
"""
Returns the full path of a question file.
Args:
file_name: The file name specified into the question.
Returns:
The full path of the file that was previously downloaded.
"""
data_path = Path(str(importlib.resources.files("data")))
return str(data_path / file_name)