'Find the source tree directory corresponding to the given
result_images subdirectory.'

def get_dest_dir(self, reldir):

    for baseline_dir in BASELINE_IMAGES:
        path = os.path.join(self.source, baseline_dir, reldir)
        if os.path.isdir(path):
            return path
    raise ValueError(u"Can't    find    baseline    dir    for    {}".format(reldir))
