Skip to content

Instantly share code, notes, and snippets.

View Atlas48's full-sized avatar

Atlas Cove Atlas48

  • @kompot-studios
  • Sainte-Marguerite D'Elle, France
View GitHub Profile
@Atlas48
Atlas48 / rc_json2cfg.py
Created May 19, 2023 14:01
converts a json config dump from rclone, into the ini format used to store config data
# rc_json2cfg.py v1
# WTFPL v2+ (It's simple enough that you could probably write it yourself.)
# converts a json config dump from rclone, into the ini format used to store config data
from json import load as json_load
try:
with open("rclonecfg.json", 'r') as f:
o=json_load(f)
except FileNotFoundError:
print("rclonecfg.json not found, edit file and try again.")