def SaveNewActiveConfig(config):
    'Serialize and saves the configuration as new active config file.'
    json_config = (json.dumps(config, indent=2, separators=(',', ': '), sort_keys=True) + '\n')
    json_name = ('umpire.%s.json' % hashlib.md5(json_config.encode('utf-8')).hexdigest())
    json_path = os.path.join('resources', json_name)
    with open(os.path.join(_ENV_DIR, json_path), 'w') as f:
        f.write(json_config)
    os.unlink(_CONFIG_PATH)
    os.symlink(json_path, _CONFIG_PATH)
Serialize and saves the configuration as new active config file.
def SaveNewActiveConfig(config):
    
    json_config = (json.dumps(config, indent=2, separators=(',', ': '), sort_keys=True) + '\n')
    json_name = ('umpire.%s.json' % hashlib.md5(json_config.encode('utf-8')).hexdigest())
    json_path = os.path.join('resources', json_name)
    with open(os.path.join(_ENV_DIR, json_path), 'w') as f:
        f.write(json_config)
    os.unlink(_CONFIG_PATH)
    os.symlink(json_path, _CONFIG_PATH)