code: def SetEnvironmentVariable(self, name, value):
      
      if isinstance(value, py2to3.STRING_TYPES):
        value = self._PathStripPrefix(value)
  
      if value is not None:
        self._environment_variables[name.upper()] = value
docs: Sets an environment variable in the Windows path helper.
  
      Args:
        name (str): name of the environment variable without enclosing
            %-characters, e.g. SystemRoot as in %SystemRoot%.
        value (str): value of the environment variable.