sync
This commit is contained in:
19
src/compose/src_path/entity.py
Normal file
19
src/compose/src_path/entity.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import final
|
||||
|
||||
|
||||
@final
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class SrcPaths:
|
||||
cfg_dir: Path
|
||||
cfg_file: Path
|
||||
env_file: Path
|
||||
|
||||
|
||||
def src_paths_factory(src: Path) -> SrcPaths:
|
||||
return SrcPaths(
|
||||
cfg_dir=src,
|
||||
cfg_file=src.joinpath("cfg.yml"),
|
||||
env_file=src.joinpath(".env"),
|
||||
)
|
||||
Reference in New Issue
Block a user