La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.
Open in Web IDE
Quickly and easily edit multiple files in your project.
Edit
Edit this file only.
1 2 3 4 5 6 7 8 9 10 11 12 13 # coding = utf-8 import json class Configuration(dict): def __init__(self, input_file): super(Configuration,dict.__init__(self)) data=json.load(open(input_file)) for key in data: self[key]=data[key] def __getattr__(self, item): return self[item]
# coding = utf-8 import json class Configuration(dict): def __init__(self, input_file): super(Configuration,dict.__init__(self)) data=json.load(open(input_file)) for key in data: self[key]=data[key] def __getattr__(self, item): return self[item]