xnn.common.models.hub.provenance.write_license_note#
- xnn.common.models.hub.provenance.write_license_note(folder, program, release, source, license_name, license_urls)[source]#
Write the provenance note of a cache folder, unless it is already there with the same text; the first time, warn that the license of the program applies to the files.
- Parameters:
folder (Path) – The cache folder that holds the downloaded files.
program (str) – The program the files belong to and its release.
release (str) – The program the files belong to and its release.
source (str) – Where the files were downloaded from.
license_name (str) – Identifier of the license of the program.
license_urls (sequence of str) – Where the full license text is found.
- Returns:
The note.
- Return type:
Path