_save_config.py 209 B

12345678910
  1. import json
  2. def _save_json(filename: str, data: dict):
  3. with open(filename, "w") as outfile:
  4. json.dump(data, outfile, indent=2)
  5. def _save_config(data: dict):
  6. _save_json("config.json", data)