def pathsplit(value, sep=os.pathsep):
for part in value.split(sep):<EOL><INDENT>if part[:<NUM_LIT:1>] == part[-<NUM_LIT:1>:] == '<STR_LIT:">' or part[:<NUM_LIT:1>] == part[-<NUM_LIT:1>:] == '<STR_LIT>':<EOL><INDENT>part = part[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>yield part<EOL><DEDENT>
Get enviroment PATH elements as list.

This function only cares about spliting across OSes.

:param value: path string, as given by os.environ['PATH']
:type value: str
:param sep: PATH separator, defaults to os.pathsep
:type sep: str
:yields: every path
:ytype: str