def evaluate_subproject_info(self, path_from_source_root, subproject_dirname):
    depth = 0
    subproj_name = ''
    segs = PurePath(path_from_source_root).parts
    segs_spd = PurePath(subproject_dirname).parts
    while (segs and (segs[0] == segs_spd[0])):
        if (len(segs_spd) == 1):
            subproj_name = segs[1]
            segs = segs[2:]
            depth += 1
        else:
            segs_spd = segs_spd[1:]
            segs = segs[1:]
    return (depth, subproj_name)
def evaluate_subproject_info(self, path_from_source_root, subproject_dirname):
    depth = 0
    subproj_name = 
    segs = PurePath(path_from_source_root).parts
    segs_spd = PurePath(subproject_dirname).parts
    while (segs and (segs[0] == segs_spd[0])):
        if (len(segs_spd) == 1):
            subproj_name = segs[1]
            segs = segs[2:]
            depth += 1
        else:
            segs_spd = segs_spd[1:]
            segs = segs[1:]
    return (depth, subproj_name)