This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
from pathlib import Path | |
""" | |
Super basic script for fixing up conf files following the new API changes. | |
This is a one-time thing so not spending too much in engineering. | |
It traverses conf files recursively in the cwd. | |
""" | |
for conf_file in Path(".").rglob("*.conf"): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
import argparse | |
import os | |
import re | |
from functools import reduce | |
from itertools import chain | |
from pathlib import Path | |
from sys import stderr | |
from typing import Any, Dict, Optional |