def save_license()

in src/optimum/nvidia/export/converter.py [0:0]


    def save_license(self, licence_filename: str = "LICENSE"):
        """
        Save the license if provided and if the license is not already present.
        This method doesn't check the content of the license
        :param licence_filename: Name of the file containing the license content
        """
        if (
            not (
                dst_licence_file_path := self.workspace.root / licence_filename
            ).exists()
            and self._license_path
        ):
            shutil.copyfile(self._license_path, dst_licence_file_path)