import pathlib from dataclasses import dataclass @dataclass class PATHS: logging_file: pathlib.Path = pathlib.Path("anaxi.log") # Expand user is important. It will replace the user and give you the full # path. Stuff breaks without it. config_home_path: pathlib.Path = pathlib.Path("~/.anaxi/").expanduser() cosmos_db_config_file_path: pathlib.Path = config_home_path / pathlib.Path( "cosmos-db.yml" ) postgres_config_file_path: pathlib.Path = config_home_path / pathlib.Path( "postgres.yml" )