Auto-update: Thu Jul 25 01:34:44 PDT 2024

This commit is contained in:
sanj 2024-07-25 01:34:44 -07:00
parent 98ec9561aa
commit 0945b1eb84

View file

@ -33,7 +33,13 @@ def crit(text: str): logger.critical(text)
T = TypeVar('T', bound='Configuration')
BASE_DIR = Path(__file__).resolve().parent
CONFIG_DIR = BASE_DIR / "config"
ENV_PATH = CONFIG_DIR / ".env"
load_dotenv(ENV_PATH)
TS_ID = os.environ.get('TS_ID')
class Configuration(BaseModel):
HOME: Path = Path.home()
_dir_config: Optional['Configuration'] = None