1
0
Fork 0

.bam/functions.lua: use RelPath() in module to get the correct paths.

This commit is contained in:
Henrik Hautakoski 2022-09-10 21:39:05 +02:00
parent 0ce1d25594
commit d35ba0730e

View file

@ -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