# ===== Backend Data Constants =====

from pathlib import Path

from PySide6.QtCore import QStandardPaths

DEFAULT_DATA_DIR_NAME = "isc_data"


def default_data_dir() -> Path:
    """Documents-folder isc_data directory used as the default app data location."""
    documents_dir = QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DocumentsLocation)
    base_dir = Path(documents_dir) if documents_dir else (Path.home() / "Documents")
    return base_dir / DEFAULT_DATA_DIR_NAME
