Files
pobsync/src/pobsync/paths.py
Peter van Arkel 86873bd035 (refactor) Remove obsolete global config JSON storage
Drop the unused GlobalConfig.data field and remove the remaining YAML
config path helpers from PobsyncPaths.

Keep HostConfig.config as runtime state for preflight data, and relabel it
in the admin so it no longer reads as legacy compatibility storage.
2026-05-21 02:46:09 +02:00

26 lines
532 B
Python

from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
@dataclass(frozen=True)
class PobsyncPaths:
home: Path # usually /opt/pobsync
@property
def state_dir(self) -> Path:
return self.home / "state"
@property
def locks_dir(self) -> Path:
return self.state_dir / "locks"
@property
def logs_dir(self) -> Path:
return self.home / "logs"
@property
def central_log_path(self) -> Path:
return self.logs_dir / "pobsync.log"