1 2 3 4 5 6 7 8
from os import path import json import __main__ def load_config(filename): return json.load( open(path.join(path.dirname(__main__.__file__), 'config', filename + '.json')))