The path join operator / does not add a leading path seperator.
Signed-off-by: Hendrik Donner <hd@os-cillation.de>
Link: https://github.com/kmod-project/kmod/pull/303
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.format(dir_option, customdir))
endif
# Strip all leading/trailing and re-add only the leading one.
- customdir = '' / customdir.strip('/')
+ customdir = '/' / customdir.strip('/')
endif
cdata.set_quoted(quoted, customdir)
set_variable(dir_option, customdir)