diff --git a/src/__pycache__/config.cpython-311.pyc b/src/__pycache__/config.cpython-311.pyc index da5451f..0c2a580 100644 Binary files a/src/__pycache__/config.cpython-311.pyc and b/src/__pycache__/config.cpython-311.pyc differ diff --git a/src/config.py b/src/config.py index 0b46af1..ae94b7a 100644 --- a/src/config.py +++ b/src/config.py @@ -34,8 +34,16 @@ def get_env_tags(tag_list: List[str]) -> dict: def get_config(): try: - # Try to load from .env file first - config = Config(".env") + # Try to load from .env file in the project root + project_root = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + env_path = os.path.join(project_root, ".env") + + if os.path.exists(env_path): + config = Config(env_path) + else: + # Fallback to default behavior (current working directory) + config = Config(".env") + except FileNotFoundError: # If .env doesn't exist, use environment variables config = Config(environ=os.environ)