def strip_sources(sources, parent_len):
    """Given a list of source directories and a common parent
    directory, strip the source directories to their locations
    relative to the common parent"""
    result = []
    for source in sources:
        new_source = ""
        for directory in enumerate(source.split("\\")):
            if directory[0] >= (parent_len-1):
                new_source += (directory[1]) + "\\"
        result.append(new_source)
    return result