~aasg/nixexprs

ref: ef110d1cd4cb6308092c7ebb332d2793fd026c5b nixexprs/modules/services/networking/monitoring/bird-lg-config.py -rw-r--r-- 364 bytes
ef110d1c — Aluísio Augusto Silva Gonçalves bird-lg: Move local patches to patches/, per policy 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
# Put everything inside a function to avoid polluting the script's
# global namespace.
def _config_loader_main():
    import json
    import os
    for filename in os.environ.get("BIRD_LG_CONFIG_FILES", "").split(os.pathsep):
        with open(filename, "r") as file:
            config = json.load(file)
            globals().update(config)
_config_loader_main()