parameters: (env, name, item, append=True, separator=os.pathsep)
docstring: Cause `item` to be added to the path style env var named
      `name` held in the `env` dict.  `append` specifies whether
      the item is added to the end (the default) or should be
      prepended if `name` already exists.
docstring_summary: Cause `item` to be added to the path style env var named
      `name` held in the `env` dict.  `append` specifies whether
      the item is added to the end (the default) or should be
      prepended if `name` already exists.
docstring_tokens: Cause item to be added to the path style env var named name held in the env dict . append specifies whether the item is added to the end ( the default ) or should be prepended if name already exists .
function: def add_path_entry(env, name, item, append=True, separator=os.pathsep):
      """Cause `item` to be added to the path style env var named
      `name` held in the `env` dict.  `append` specifies whether
      the item is added to the end (the default) or should be
      prepended if `name` already exists."""
      val = env.get(name, "")
      if len(val) > 0:
          val = val.split(separator)
      else:
          val = []
      if append:
          val.append(item)
      else:
          val.insert(0, item)
      env.set(name, separator.join(val))
function_tokens: def add_path_entry ( env , name , item , append = True , separator = os . pathsep ) : val = env . get ( name , "" ) if len ( val ) > 0 : val = val . split ( separator ) else : val = [ ] if append : val . append ( item ) else : val . insert ( 0 , item ) env . set ( name , separator . join ( val ) )