

def get_config(**extra):
    if (not _config.initialized):
        _config.update(extra)
        _config.initialized = True
        fname = os.environ.get('PALLADIUM_CONFIG')
        if (fname is not None):
            sys.path.insert(0, os.path.dirname(fname))
            with open(fname) as f:
                _config.update(eval(f.read(), {
                    'environ': os.environ,
                }))
                _initialize_config(_config)
    return _config

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py get_config/original