.bam/functions.lua: use RelPath() in module to get the correct paths.
This commit is contained in:
parent
0ce1d25594
commit
d35ba0730e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue