File size: 410 Bytes
1b8aef5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)