diff --git a/sijapi/classes.py b/sijapi/classes.py index 1f3caef..b659c46 100644 --- a/sijapi/classes.py +++ b/sijapi/classes.py @@ -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