build_substitute_list
🔗NAME
build_substitute_list
🔗SYNOPSIS
build a list of variable substitutions
🔗USAGE
local ds = require "lib/dtutils.string"
local result = ds.build_substitute_list(image, sequence, variable_string, [username], [pic_folder], [home], [desktop])
- image - dt_lua_image_t - the image being processed
- sequence - integer - the sequence number of the image being processed (exported)
- variable_string - string - the substitution variable string
- [username] - string - optional - user name. Will be determined if not supplied
- [pic_folder] - string - optional - pictures folder name. Will be determined if not supplied
- [home] - string - optional - home directory. Will be determined if not supplied
- [desktop] - string - optional - desktop directory. Will be determined if not supplied
🔗DESCRIPTION
build_substitute_list populates variables with values from the arguments and determined from the system and darktable.
🔗RETURN VALUE
🔗LIMITIATIONS
If the value for a variable can not be determined, or is not supported, then an empty string is used for the value