data-anaxi/anaxi/constants.py

17 lines
544 B
Python
Raw Normal View History

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"
)
2024-08-09 14:45:10 +02:00
postgres_config_file_path: pathlib.Path = config_home_path / pathlib.Path(
"postgres.yml"
)