from pathlib import Path


def get_file_path(path_end: str) -> str:
    """
    Get the correct path to the file needed for this test
    """

    # Test if the testcase was run directly or over in a global test-run.
    # Match the needed path to the config file in both cases

    path = Path(__file__).parent.resolve()
    return str(path.joinpath(path_end))