from dataclasses import dataclass from pathlib import Path from typing import Self, final @final @dataclass(frozen=True, slots=True) class DestPaths: compose_file: Path bind_vol_path: Path # def __post_init__(self): # log_cls( # self, # compose_file=str(self.compose_file), # bind_vol_path=str(self.bind_vol_path), # ) @classmethod def from_path(cls, src: Path) -> Self: return cls( src.joinpath("docker-compose.yml"), src.joinpath("bind_vols.yml"), )