def _load_config(cfgs):
config = {}
for cfg in cfgs:
cfg = os.path.expanduser(cfg)
if os.path.isfile(cfg):
with open(cfg, 'r') as f:
yml = yaml.safe_load(f)
if yml:
config.update(yml)
return AttrDict(config)