1
0
Fork 0
spectre/.bam/path.lua

11 lines
260 B
Lua

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