This repository has been archived on 2025-11-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Fitz_Studio/entrypoint/__init__.py
T
2025-05-05 02:21:55 +02:00

14 lines
424 B
Python

import os
from dotenv import load_dotenv
# Calcular ruta absoluta al .env
ENV_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'config', '.env'))
# Cargar el .env si existe
if os.path.exists(ENV_PATH):
load_dotenv(ENV_PATH)
else:
raise FileNotFoundError(f"No se encontró el archivo .env en {ENV_PATH}")
# Exponer la ruta como variable accesible al importar `entrypoint`
__all__ = ['ENV_PATH']