  
      def get_location(self, folder, filename):
          """ Return the path to alignments file """
          logger.debug("Getting location: (folder: '%s', filename: '%s')", folder, filename)
          extension = os.path.splitext(filename)[1]
          if extension in (".json", ".p", ".pickle", ".yaml", ".yml"):
              # Reformat legacy alignments file
              filename = self.update_file_format(folder, filename)
              logger.debug("Updated legacy alignments. New filename: '%s'", filename)
          if extension[1:] == self.serializer.file_extension:
 
</s> remove             filename = "{}.{}".format(os.path.splitext(filename)[0], self.serializer.file_extension)
 </s> add             filename = "{}.{}".format(noext_name, self.serializer.file_extension) </s> remove                      "alignments": [("Faceswap Alignments", "*.fsa"),
 </s> add                      "alignments": [("Faceswap Alignments", "*.fsa *.json"),
        noext_name, extension = os.path.splitext(filename)
  
      def get_location(self, folder, filename):
          """ Return the path to alignments file """
          logger.debug("Getting location: (folder: '%s', filename: '%s')", folder, filename)
        noext_name, extension = os.path.splitext(filename)
          if extension in (".json", ".p", ".pickle", ".yaml", ".yml"):
              # Reformat legacy alignments file
              filename = self.update_file_format(folder, filename)
              logger.debug("Updated legacy alignments. New filename: '%s'", filename)
          if extension[1:] == self.serializer.file_extension:
keep keep keep keep replace keep keep keep keep keep
 Add json to the filter in the GUI alignment open dialog 
lib/alignments.py