1
0
Fork 0

Adding .bam/path.lua

This commit is contained in:
Henrik Hautakoski 2022-09-10 20:02:34 +02:00
parent e9ebb38090
commit 01b626d44e

11
.bam/path.lua Normal file
View file

@ -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