Underground-Digital/Workflow-Engine
0
1import os2 3# Getting the absolute path of the current file's directory4ABS_PATH = os.path.dirname(os.path.abspath(__file__))5 6# Getting the absolute path of the project's root directory7PROJECT_DIR = os.path.abspath(os.path.join(ABS_PATH, os.pardir, os.pardir))8 9 10# Loading the .env file if it exists11def _load_env() -> None:12 dotenv_path = os.path.join(PROJECT_DIR, "tests", "integration_tests", ".env")13 if os.path.exists(dotenv_path):14 from dotenv import load_dotenv15 16 load_dotenv(dotenv_path)17 18 19_load_env()20 