code: func ResolveLocalPaths(config *clientcmdapi.Config) error {
  	for _, cluster := range config.Clusters {
  		if len(cluster.LocationOfOrigin) == 0 {
  			continue
  		}
  		base, err := filepath.Abs(filepath.Dir(cluster.LocationOfOrigin))
  		if err != nil {
  			return fmt.Errorf("Could not determine the absolute path of config file %s: %v", cluster.LocationOfOrigin, err)
  		}
  
  		if err := ResolvePaths(GetClusterFileReferences(cluster), base); err != nil {
  			return err
  		}
  	}
  	for _, authInfo := range config.AuthInfos {
  		if len(authInfo.LocationOfOrigin) == 0 {
  			continue
  		}
  		base, err := filepath.Abs(filepath.Dir(authInfo.LocationOfOrigin))
  		if err != nil {
  			return fmt.Errorf("Could not determine the absolute path of config file %s: %v", authInfo.LocationOfOrigin, err)
  		}
  
  		if err := ResolvePaths(GetAuthInfoFileReferences(authInfo), base); err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: // ResolveLocalPaths resolves all relative paths in the config object with respect to the stanza's LocationOfOrigin
  // this cannot be done directly inside of LoadFromFile because doing so there would make it impossible to load a file without
  // modification of its contents.