def cfg_from_file(filename):
 import yaml
 with open(filename, 'r') as f:
  yaml_cfg = edict(yaml.load(f))
 _merge_a_into_b(yaml_cfg, __C)

def cfg_from_file ( filename ) : import yaml with open ( filename , 'r' ) as f : yaml_cfg = edict ( yaml . load ( f ) ) _merge_a_into_b ( yaml_cfg , __C )
load a config file and merge it into the default options .