diff options
author | chai <chaifix@163.com> | 2018-12-22 13:10:45 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-22 13:10:45 +0800 |
commit | 731a8ba6e52aa0b000b46c89e414a248e05778ff (patch) | |
tree | 5e6c62d0469f9a6e6019228a81a23bdfb9b4505e /src/libjin-lua/scripts/path/path.lua | |
parent | ef7c4915c20d7f6ceb5484f99f96979fd5a9594d (diff) |
*移动embed script位置
Diffstat (limited to 'src/libjin-lua/scripts/path/path.lua')
-rw-r--r-- | src/libjin-lua/scripts/path/path.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libjin-lua/scripts/path/path.lua b/src/libjin-lua/scripts/path/path.lua new file mode 100644 index 0000000..c6bcf41 --- /dev/null +++ b/src/libjin-lua/scripts/path/path.lua @@ -0,0 +1,10 @@ + +jin.path = jin.path or {} + +-- 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 |