find config files in ERESSEA_DIR if config.install is not set

This commit is contained in:
Enno Rehling 2021-02-23 17:19:48 +01:00
parent 8421e64c6e
commit e36cac1188
2 changed files with 4 additions and 8 deletions

View File

@ -1,11 +1,8 @@
local path = os.getenv("ERESSEA_DIR")
if not path 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"

View File

@ -7,6 +7,5 @@ locales = de,en
[lua]
install = ..
paths = lunit:scripts
maxnmrs = 20
rules = e2