code: def load_cfg(self, src_dir):
          
  
          # last files override previous ones
          cfg_files = [os.path.expanduser(USER_CFG_FILE),
                       os.path.abspath(os.path.join(src_dir, '.dirsync'))]
  
          cfg = ConfigParser()
          cfg.read(cfg_files)
  
          if not cfg.has_section('defaults'):
              return
  
          defaults = {}
          for name, val in cfg.items('defaults'):
              try:
                  opt = OPTIONS[name][1]
              except KeyError:
                  if name == 'action':
                      if val in OPTIONS:
                          defaults['action'] = val
                      else:
                          raise ValueError('Invalid value for "action" option '
                                           'in configuration file: %s' % val)
                  continue
  
              curdef = opt.get('default', '')
              if isinstance(curdef, bool):
                  newdef = val not in ('0', 'False', 'false')
              elif isinstance(curdef, string_types):
                  newdef = val
              else:
                  newdef = val.strip('\n').split('\n')
  
              defaults[name] = newdef
  
          self.set_defaults(**defaults)
docs: Load defaults from configuration file:
           - from the source/directory/.dirsync file (prioritary)
           - and/or a %HOME%/.dirsync user config file