forked from github/server
find config files in ERESSEA_DIR if config.install is not set
This commit is contained in:
parent
8421e64c6e
commit
e36cac1188
|
@ -1,11 +1,8 @@
|
|||
local path = os.getenv("ERESSEA_DIR")
|
||||
if not path then
|
||||
if config.install then
|
||||
local path = '.'
|
||||
if config.install then
|
||||
path = config.install
|
||||
else
|
||||
path = '.'
|
||||
end
|
||||
else
|
||||
path = os.getenv("ERESSEA_DIR") or path
|
||||
config.install = path
|
||||
end
|
||||
path = path .. "/scripts"
|
||||
|
|
|
@ -7,6 +7,5 @@ locales = de,en
|
|||
|
||||
[lua]
|
||||
install = ..
|
||||
paths = lunit:scripts
|
||||
maxnmrs = 20
|
||||
rules = e2
|
||||
|
|
Loading…
Reference in New Issue