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
# 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.") |
OlderNewer