def load_user():
 config_path = get_user_config_path()
 config = {}
 with open(config_path) as f:
  code = compile(f.read(), config_path, 'exec')
 exec code in config
 keys = list(six.iterkeys(config))
 for k in keys:
  if k.startswith('_'):
   del config[k]
 return config

def load_user ( ) : config_path = get_user_config_path ( ) config = { } with open ( config_path ) as f : code = compile ( f . read ( ) , config_path , 'exec' ) exec code in config keys = list ( six . iterkeys ( config ) ) for k in keys : if k . startswith ( '_' ) : del config [ k ] return config
read user config file and return it as a dict .