def apply_spm_config(overrides, defaults):
 opts = defaults.copy()
 if overrides:
  opts.update(overrides)
 prepend_root_dirs = ['formula_path', 'pillar_path', 'reactor_path', 'spm_cache_dir', 'spm_build_dir']
 for config_key in ('spm_logfile',):
  log_setting = opts.get(config_key, '')
  if (log_setting is None):
   continue
  if (urlparse(log_setting).scheme == ''):
   prepend_root_dirs.append(config_key)
 prepend_root_dir(opts, prepend_root_dirs)
 return opts

def apply_spm_config ( overrides , defaults ) : opts = defaults . copy ( ) if overrides : opts . update ( overrides ) prepend_root_dirs = [ 'formula_path' , 'pillar_path' , 'reactor_path' , 'spm_cache_dir' , 'spm_build_dir' ] for config_key in ( 'spm_logfile' , ) : log_setting = opts . get ( config_key , '' ) if ( log_setting is None ) : continue if ( urlparse ( log_setting ) . scheme == '' ) : prepend_root_dirs . append ( config_key ) prepend_root_dir ( opts , prepend_root_dirs ) return opts
returns the spm configurations dict .