from pathlib import Path


def temp_dirs(tmp_path_factory):
    """ Create two temporary directories. """
    p1 = Path(tmp_path_factory.mktemp("default"))
    p2 = Path(tmp_path_factory.mktemp("configs"))
    return p1, p2