Skip to content

Commit e4e194b

Browse files
authored
Fixed $(FILE.NAME) variable substitution
According to comments and https://docs.darktable.org/usermanual/4.6/en/special-topics/variables/ it should be a basename.
1 parent c70ebf4 commit e4e194b

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
@@ -748,7 +748,7 @@ function dtutils_string.build_substitute_list(image, sequence, variable_string,
748748

749749
local replacements = {image.film.path, -- ROLL.NAME
750750
image.path, -- FILE.FOLDER
751-
image.filename, -- FILE.NAME
751+
dtutils_string.get_basename(image.filename),-- FILE.NAME
752752
dtutils_string.get_filetype(image.filename),-- FILE.EXTENSION
753753
image.id, -- ID
754754
image.duplicate_index, -- VERSION

0 commit comments

Comments
 (0)