diff --git a/.bam/path.lua b/.bam/path.lua new file mode 100644 index 0000000..b798e61 --- /dev/null +++ b/.bam/path.lua @@ -0,0 +1,11 @@ + +-- Like ModuleFilename but only return the directory path +function ModuleDir() + return PathDir(ModuleFilename()) +end + +-- Make the path relative to the current working directory +-- and ModuleDir() +function RelPath(path) + return PathJoin(ModuleDir(), path) +end