parameters: ()
return_statement: return dirs
docstring: Convert sys.path into a list of absolute, existing, unique paths.
docstring_summary: Convert sys.path into a list of absolute, existing, unique paths.
docstring_tokens: Convert sys . path into a list of absolute existing unique paths .
function: def pathdirs():
      """Convert sys.path into a list of absolute, existing, unique paths."""
      dirs = []
      normdirs = []
      for dir in sys.path:
          dir = os.path.abspath(dir or '.')
          normdir = os.path.normcase(dir)
          if normdir not in normdirs and os.path.isdir(dir):
              dirs.append(dir)
              normdirs.append(normdir)
      return dirs
function_tokens: def pathdirs ( ) : dirs = [ ] normdirs = [ ] for dir in sys . path : dir = os . path . abspath ( dir or '.' ) normdir = os . path . normcase ( dir ) if normdir not in normdirs and os . path . isdir ( dir ) : dirs . append ( dir ) normdirs . append ( normdir ) return dirs