from pathlib import Path

from dotenv import load_dotenv


def load_org_dotenv(org: str) -> None:
    dotenv_path = Path(f"cloudzero-demo-billing/orgs/{org}/.env")
    if dotenv_path.exists():
        load_dotenv(dotenv_path, override=True)
        print(f"[•] Loaded environment from {dotenv_path}")
    else:
        print(f"[!] No .env file found at {dotenv_path} — continuing without loading")
