from pathlib import Path
import configparser


def get_path_mode(settingsFile):
    """Get path mode

        Returns the path of the file containing the vocab-pairs and
        the mode of the run.
    """
    fullPath = Path.cwd()

    conf = configparser.ConfigParser()
    conf.read_file(open(fullPath / settingsFile))
    relPath = conf.get("General", "path")
    mode = conf.get("General", "mode")

    return [fullPath / "vocab-files" / relPath, mode]