En prévision de l'arrivée de la forge institutionnelle INRAE, nous vous invitons à créer vos nouveaux projets sur la forge MIA.
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]