code: func (cfg *Config) envForName(name string, e *vpython.Environment) *Env {
  	// Env-specific root directory: <BaseDir>/<name>
  	venvRoot := filepath.Join(cfg.BaseDir, name)
  	binDir := venvBinDir(venvRoot)
  	return &Env{
  		Config:               cfg,
  		Root:                 venvRoot,
  		Name:                 name,
  		Python:               filepath.Join(binDir, "python"),
  		Environment:          e,
  		BinDir:               binDir,
  		EnvironmentStampPath: filepath.Join(venvRoot, fmt.Sprintf("environment.%s.pb.txt", vpython.Version)),
  		lockPath:             filepath.Join(cfg.BaseDir, fmt.Sprintf(".%s.lock", name)),
  
  		completeFlagPath: filepath.Join(venvRoot, "complete.flag"),
  	}
  }
docs: // envForName creates an Env for a named directory.
  //
  // The Environment, e, can be nil; however, code paths that require it may not
  // be called.