()
return dirs
Convert sys.path into a list of absolute, existing, unique paths.
Convert sys.path into a list of absolute, existing, unique paths.
Convert sys . path into a list of absolute existing unique paths .
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
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