doxy/doxy/config.py

17 lines
421 B
Python
Raw Normal View History

2023-01-10 08:57:57 +01:00
from dataclasses import dataclass
2023-01-10 15:45:35 +01:00
from pathlib import Path
2023-01-10 08:57:57 +01:00
2023-01-10 15:45:35 +01:00
from xdg import xdg_config_home
2023-01-10 08:57:57 +01:00
from yamldataclassconfig import create_file_path_field
from yamldataclassconfig.config import YamlDataClassConfig
@dataclass
class Config(YamlDataClassConfig):
2023-01-10 15:45:35 +01:00
root_directory: str = ""
compose_executable: str = ""
2023-01-10 08:57:57 +01:00
2023-01-10 15:45:35 +01:00
FILE_PATH: Path = create_file_path_field(
Path(xdg_config_home()) / "doxy/config.yml"
)