code: def add_paths_to_os(self, key=None, update=None):
          ''' Add the paths in tree environ into the os environ
  
          This code goes through the tree environ and checks
          for existence in the os environ, then adds them
  
          Parameters:
              key (str):
                  The section name to check against / add
              update (bool):
                  If True, overwrites existing tree environment variables in your
                  local environment.  Default is False.
          '''
  
          if key is not None:
              allpaths = key if isinstance(key, list) else [key]
          else:
              allpaths = [k for k in self.environ.keys() if 'default' not in k]
  
          for key in allpaths:
              paths = self.get_paths(key)
              self.check_paths(paths, update=updatef add_paths_to_os(self, key=None, update=None):
          ''' Add the paths in tree environ into the os environ
  
          This code goes through the tree environ and checks
          for existence in the os environ, then adds them
  
          Parameters:
              key (str):
                  The section name to check against / add
              update (bool):
                  If True, overwrites existing tree environment variables in your
                  local environment.  Default is False.
          '''
  
          if key is not None:
              allpaths = key if isinstance(key, list) else [key]
          else:
              allpaths = [k for k in self.environ.keys() if 'default' not in k]
  
          for key in allpaths:
              paths = self.get_paths(key)
              self.check_paths(paths, update=update)
docs: Add the paths in tree environ into the os environ
  
          This code goes through the tree environ and checks
          for existence in the os environ, then adds them
  
          Parameters:
              key (str):
                  The section name to check against / add
              update (bool):
                  If True, overwrites existing tree environment variables in your
                  local environment.  Default is False.