feat(calibration): complete step 1 data inspection with data quality v1
This commit is contained in:
18
scripts/common/env.py
Normal file
18
scripts/common/env.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# scripts/common/env.py
|
||||
from pathlib import Path
|
||||
from dotenv import load_dotenv
|
||||
from src.utils.logger import log
|
||||
|
||||
|
||||
def setup_environment():
|
||||
"""
|
||||
Carga variables de entorno desde config/secrets.env
|
||||
"""
|
||||
env_path = Path(__file__).parent.parent.parent / "config" / "secrets.env"
|
||||
|
||||
if not env_path.exists():
|
||||
log.warning(f"⚠️ Archivo .env no encontrado: {env_path}")
|
||||
return
|
||||
|
||||
load_dotenv(dotenv_path=env_path)
|
||||
log.success("✓ Variables de entorno cargadas")
|
||||
Reference in New Issue
Block a user