"""Runtime bootstrap when src is placed on PYTHONPATH."""

from __future__ import annotations

import os
import tempfile
from pathlib import Path


preferred = Path(os.environ.get("MAIS_HUMANA_TEMP", "C:/tmp"))
try:
    preferred.mkdir(parents=True, exist_ok=True)
    tempfile.tempdir = str(preferred)
except OSError:
    pass

