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