Adding .bam/path.lua
This commit is contained in:
parent
e9ebb38090
commit
01b626d44e
1 changed files with 11 additions and 0 deletions
11
.bam/path.lua
Normal file
11
.bam/path.lua
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue