From d35ba0730eccd83f643506e0f956be41a325ffe0 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 10 Sep 2022 21:39:05 +0200 Subject: [PATCH] .bam/functions.lua: use RelPath() in module to get the correct paths. --- .bam/functions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bam/functions.lua b/.bam/functions.lua index 40ffc04..e5203e0 100644 --- a/.bam/functions.lua +++ b/.bam/functions.lua @@ -1,4 +1,5 @@ +Import("path.lua") Import("utils.lua") local _systems = { @@ -54,9 +55,10 @@ end -- path: base path to source files. -- src: table of source files. function Module(path, src) + path = RelPath(path) local r = {} for k, v in pairs(src) do - r[k] = path .. "/" .. v + r[k] = PathJoin(path, v) end return r end