import json
with open("config.json", "r") as f:
opt = json.load(f)
datapath = opt["aaa"]["datapath"]