aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/embed/scripts/path/path.lua
blob: d41c167d113d3f3dca6a5afde60ca31d6f6ccd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
jin.path = jin.path or {} 

local jp = jin.path

-- Game root directory.
jin.cwd = jin.args['cwd'] or '.' 

-- Get full path of a given path.
function jin.path.full(path)
    return jin.cwd .. '/' .. path
end