code: def _set_defaults(self, namespace, optional_cfg_files):
          
          # Add current configuration directory
          namespace["config_dir"] = self.config_dir
  
          # Load defaults
          for idx, cfg_file in enumerate([self.CONFIG_INI] + optional_cfg_files):
              if any(i in cfg_file for i in set('/' + os.sep)):
                  continue # skip any non-plain filenames
  
              try:
                  defaults = pymagic.resource_string("pyrocore", "data/config/" + cfg_file) #@UndefinedVariable
              except IOError as exc:
                  if idx and exc.errno == errno.ENOENT:
                      continue
                  raise
  
              ini_file = ConfigParser.SafeConfigParser()
              ini_file.optionxform = str # case-sensitive option names
              ini_file.readfp(StringIO.StringIO(defaults), "<defaults>")
              self._set_from_ini(namespace, ini_file)
docs: Set default values in the given dict.