'find images by session for export'

def getImagesCapturedSession(self, session):

    list_images = []
    if (session == ''):
        for image in listdir('logs/ImagesCap/'):
            list_images.append('{}/logs/ImagesCap/{}'.format(getcwd(), image))
        return list_images
    for image in listdir('logs/ImagesCap'):
        if (session in image):
            list_images.append('{}/logs/ImagesCap/{}'.format(getcwd(), image))
    return list_images
