11 lines
260 B
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
|