def get_source_paths(workspace):
    """
    reads catkin workspace files and returns the list of all declared
    source paths

    :param workspace: path to catkin workspace folder, ``str``
    """
    # determine source spaces
    filename = os.path.join(workspace, CATKIN_MARKER_FILE)
    if not os.path.isfile(filename):
        raise ValueError('Not a catkin workspace: "%s", missing file %s' % (workspace, filename))
    with open(filename) as f:
        data = f.read()

    source_paths = []
    if data != '':
        real_source_paths = set([])
        for path in data.split(';'):
            real_path = os.path.realpath(path)
            if real_source_paths not in real_path:
                source_paths.append(path)
                real_source_paths.add(real_path)
    return source_paths
dataset/ETHPy150Open ros/catkin/python/catkin/workspace.py/get_source_paths/swapped operands of `not in`