Skip to content

Instantly share code, notes, and snippets.

@shellygr
shellygr / CVL1_to_CVL2.0_syntax_update.py
Last active April 27, 2023 07:59
CVL1 to CVL2 syntax updater script
#!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
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"):