fix: provide configurable file path

main
Malar Invention 2025-01-12 14:35:31 +05:30
parent 87953222bb
commit 87869abf8b
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ import os
# Configuration
import yaml
with open("gateway_services.yaml", "r") as f:
GATEWAY_SERVICES_FILE = os.getenv("GATEWAY_SERVICES_FILE")
with open(GATEWAY_SERVICES_FILE, "r") as f:
gateway_services = yaml.safe_load(f)
services = gateway_services["gateway_services"]