14 lines
387 B
Python
Executable File
14 lines
387 B
Python
Executable File
import yaml
|
|
|
|
CONFIG_PATH = "/sls/X12SA/data/gac-x12saop/bec/config/bec_service_config.yaml"
|
|
|
|
|
|
def load_service_config() -> dict:
|
|
"""Load the service configuration from the YAML file."""
|
|
with open(CONFIG_PATH, "r", encoding="utf-8") as stream:
|
|
try:
|
|
config = yaml.safe_load(stream)
|
|
except yaml.YAMLError as exc:
|
|
print(exc)
|
|
return config
|