def load_env_file():
        """Load environment variables from .env file."""
        current_dir = os.path.dirname(os.path.abspath(__file__))
        env_path = os.path.join(current_dir, "../../../.env")
        if os.path.exists(env_path):
            with open(env_path) as f:
                for line in f:
                    line = line.strip()
                    if line and not line.startswith("#"):
                        key, value = line.split("=", 1)
                        os.environ[key.strip()] = value.strip()
Load environment variables from .env file.
llama-index-integrations/readers/llama-index-readers-gitbook/llama_index/readers/gitbook/base.py