Skip to content
Snippets Groups Projects
Commit 89c11e87 authored by 最萌小汐's avatar 最萌小汐
Browse files

clean up code

parent 7d1c0016
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ local function loadArgs()
value = false
elseif tonumber(value) then
value = tonumber(value)
elseif value:sub(1, 1) == '"' and value:sub(-1, -1) == '"' then
value = value:sub(2, -2)
end
_G[key:upper()] = value
end
......@@ -20,7 +22,6 @@ end
loadArgs()
LANG = LANG or 'en-US'
LOGPATH = LOGPATH or (ROOT:string() .. '/log')
METAPATH = METAPATH or (ROOT:string() .. '/meta')
......
......@@ -7,7 +7,6 @@ package.path = package.path
.. ';' .. rootPath .. '/test/?/init.lua'
local fs = require 'bee.filesystem'
ROOT = fs.path(rootPath)
LANG = 'zh-CN'
TEST = true
DEVELOP = true
LOGPATH = LOGPATH or (ROOT .. '/log')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment