Skip to content

Commit 3fa913d

Browse files
authored
Fixed $ROLL.NAME substitution
Accd to https://github.com/darktable-org/darktable/blob/57d3ad4bd30372b1f7ae7368f6887d3292269b2a/src/common/variables.c#L660 it should be a basename of the file path.
1 parent e4e194b commit 3fa913d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dtutils/string.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ function dtutils_string.build_substitute_list(image, sequence, variable_string,
746746

747747
local version_multi = #image:get_group_members() > 1 and image.version or ""
748748

749-
local replacements = {image.film.path, -- ROLL.NAME
749+
local replacements = {dtutils_string.get_basename(image.film.path),-- ROLL.NAME
750750
image.path, -- FILE.FOLDER
751751
dtutils_string.get_basename(image.filename),-- FILE.NAME
752752
dtutils_string.get_filetype(image.filename),-- FILE.EXTENSION

0 commit comments

Comments
 (0)