          """ Set the correct source folder """
          if (hasattr(arguments, "faces_dir") and arguments.faces_dir and
                  hasattr(arguments, "frames_dir") and arguments.frames_dir):
              logger.error("Only select a source frames (-fr) or source faces (-fc) folder")
              exit(0)
          elif hasattr(arguments, "faces_dir") and arguments.faces_dir:
              self.type = "faces"
              source_dir = arguments.faces_dir
          elif hasattr(arguments, "frames_dir") and arguments.frames_dir:
              self.type = "frames"
 
</s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove         self.final_alignments.data.setdefault(frame, list()).append(alignment)
 </s> add         self.final_alignments.data.setdefault(frame,
                                              dict()).setdefault("faces", []).append(alignment) </s> remove             exit(0)
 </s> add             sys.exit(0)
            sys.exit(1)
          """ Set the correct source folder """
          if (hasattr(arguments, "faces_dir") and arguments.faces_dir and
                  hasattr(arguments, "frames_dir") and arguments.frames_dir):
              logger.error("Only select a source frames (-fr) or source faces (-fc) folder")
            sys.exit(1)
          elif hasattr(arguments, "faces_dir") and arguments.faces_dir:
              self.type = "faces"
              source_dir = arguments.faces_dir
          elif hasattr(arguments, "frames_dir") and arguments.frames_dir:
              self.type = "frames"
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
tools/lib_alignments/jobs.py