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") local path = '.'
if not path then if config.install then
if config.install then path = config.install
path = config.install
else
path = '.'
end
else else
path = os.getenv("ERESSEA_DIR") or path
config.install = path config.install = path
end end
path = path .. "/scripts" path = path .. "/scripts"

View File

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