| 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) | |