def write_config(conf, path_or_file):
    if isinstance(path_or_file, (str, unicode)):
        fp = open(path_or_file, "w+")
        doclose = True
    else:
        fp = path_or_file
        doclose = False
    dump(conf, fp)
    if doclose:
        fp.close()
Write a JSON config file.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/jsonconfig.py/write_config