modbus-utils/galion_modbus/sites.py

11 lines
257 B
Python
Raw Normal View History

2026-08-29 00:28:13 +00:00
"""Site PLC configs — loaded from sites.yaml at runtime."""
import yaml
import os
_SITES_PATH = os.path.join(os.path.dirname(__file__), "..", "config", "sites.yaml")
def load_sites():
with open(_SITES_PATH) as fh:
return yaml.safe_load(fh)