def add_output(self, full_path, name=None, channel=1):
        """adds the media in the given path to the time line

        :param str full_path: The path of the file
        """
        logger.debug('adding output from: %s' % full_path)
        extension = os.path.splitext(full_path)[-1].lower()

        logger.debug('extension: %s' % extension)

        output_type = None
        for key in output_types.keys():
            if output_types[key] in extension:
                output_type = key
                break

        if output_type == 'image':
            logger.debug('output is image')
            bpy.ops.sequencer.image_strip_add(
                directory=os.path.dirname(full_path),
                files=[
                    {
                        "name": os.path.basename(full_path),
                        # "name": os.path.basename(full_path)
                    }
                ],
                relative_path=True,
                frame_start=1,
                frame_end=26,
                channel=channel
            )
        elif output_type == 'movie':
            logger.debug('output is movie')
            logger.debug('full_path: %s' % full_path)
            bpy.ops.sequencer.movie_strip_add(
                filepath=full_path,
                files=[
                    {
                        "name": os.path.basename(full_path),
                        # "name": os.path.basename(full_path)
                    }
                ],
                relative_path=True,
                frame_start=1,
                channel=channel
            )
        else:
            logger.debug('output_type is unknown: %s' % output_type)
dataset/ETHPy150Open eoyilmaz/anima/anima/env/blender/reviewer.py/StripGenerator.add_output/swapped operands of `in`