      def set_output(self):
          """ Set the output folder path """
          now = datetime.now().strftime("%Y%m%d_%H%M%S")
          folder_name = "drawn_landmarks_{}".format(now)
          if self.frames.vid_cap:
              dest_folder = os.path.split(self.frames.folder)[0]
          else:
              dest_folder = self.frames.folder
          output_folder = os.path.join(dest_folder, folder_name)
          logger.debug("Creating folder: '%s'", output_folder)
          os.makedirs(output_folder)
 
</s> remove         folder_name = "{}_{}".format(self.output_message.replace(" ", "_").lower(), now)
        output_folder = os.path.join(self.source_dir, folder_name)
 </s> add         folder_name = "{}{}_{}".format(self.get_filename_prefix,
                                       self.output_message.replace(" ", "_").lower(), now)
        dst_dir = self.get_output_folder()
        output_folder = os.path.join(dst_dir, folder_name) </s> remove         filename = "{}_{}.txt".format(self.output_message.replace(" ", "_").lower(), now)
        output_file = os.path.join(self.source_dir, filename)
 </s> add         dst_dir = self.get_output_folder()
        filename = "{}{}_{}.txt".format(self.get_filename_prefix(),
                                        self.output_message.replace(" ", "_").lower(),
                                        now)
        output_file = os.path.join(dst_dir, filename) </s> remove         if self.vid_reader is not None:
 </s> add         if self.is_video:
        if self.frames.is_video:
            dest_folder = os.path.dirname(self.frames.folder)
      def set_output(self):
          """ Set the output folder path """
          now = datetime.now().strftime("%Y%m%d_%H%M%S")
          folder_name = "drawn_landmarks_{}".format(now)
        if self.frames.is_video:
            dest_folder = os.path.dirname(self.frames.folder)
        if self.frames.is_video:
            dest_folder = os.path.dirname(self.frames.folder)
          else:
              dest_folder = self.frames.folder
          output_folder = os.path.join(dest_folder, folder_name)
          logger.debug("Creating folder: '%s'", output_folder)
          os.makedirs(output_folder)
keep keep keep keep replace replace keep keep keep keep keep
 Fix output for alignments tool tasks when input is a video 
tools/lib_alignments/jobs.py