from pathlib import Path
from typing import IO


def openConfig(path: Path, mode: str) -> IO[str]:
    """Open the SoftFab configuration file."""
    return open(path / 'softfab.ini', encoding='utf-8', mode=mode)