def remove_absolute_paths(line):
    """
    Removes libraries from the line that are found under /usr
    """

    if sys.platform == 'win32':
        return line
    elif sys.platform == 'darwin':
        return re.sub('/Applications/[-_a-zA-Z0-9/.]+.framework[;]?', '', line)
    else:
        return re.sub('/usr/[-_a-zA-Z0-9/]+.so[;]?', '', line)