POST_CONSUME_SCRIPT: add documents archive_path

This commit is contained in:
ziprandom
2022-06-22 13:58:50 +00:00
parent 9424b763ca
commit f20254217f
3 changed files with 3 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ class Consumer(LoggingMixin):
script_env["DOCUMENT_ADDED"] = str(document.added)
script_env["DOCUMENT_FILE_NAME"] = document.get_public_filename()
script_env["DOCUMENT_SOURCE_PATH"] = os.path.normpath(document.source_path)
script_env["DOCUMENT_ARCHIVE_PATH"] = os.path.normpath(str(document.archive_path))
script_env["DOCUMENT_THUMBNAIL_PATH"] = os.path.normpath(
document.thumbnail_path
)