diff --git a/.bam/path.lua b/.bam/path.lua index b798e61..bcfd657 100644 --- a/.bam/path.lua +++ b/.bam/path.lua @@ -4,6 +4,11 @@ function ModuleDir() return PathDir(ModuleFilename()) end +-- Strip ModuleDir() of the beginning of path +function ModuleRelative(path) + return string.gsub(path, "^" .. ModuleDir() .. "/", "") +end + -- Make the path relative to the current working directory -- and ModuleDir() function RelPath(path)