From 01b626d44ee31dabdc854de5655a18685178377a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 10 Sep 2022 20:02:34 +0200 Subject: [PATCH] Adding .bam/path.lua --- .bam/path.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .bam/path.lua 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