diff --git a/scripts/tests/common.lua b/scripts/tests/common.lua index 0ae776197..6c98b19ac 100644 --- a/scripts/tests/common.lua +++ b/scripts/tests/common.lua @@ -814,7 +814,7 @@ end local function find_in_report(f, pattern, extension) extension = extension or "nr" - local filename = config.basepath .. "/reports/" .. get_turn() .. "-" .. itoa36(f.id) .. "." .. extension + local filename = config.reportpath .. "/" .. get_turn() .. "-" .. itoa36(f.id) .. "." .. extension local report = io.open(filename, 'rt'); assert_not_nil(report) t = report:read("*all") diff --git a/src/bindings/bindings.c b/src/bindings/bindings.c index 34cefe183..f633f7716 100644 --- a/src/bindings/bindings.c +++ b/src/bindings/bindings.c @@ -1142,6 +1142,9 @@ static void parse_inifile(lua_State * L, dictionary * d, const char *section) lua_pushstring(L, "basepath"); lua_pushstring(L, basepath()); lua_rawset(L, -3); + lua_pushstring(L, "reportpath"); + lua_pushstring(L, reportpath()); + lua_rawset(L, -3); } int tolua_eressea_open(lua_State * L)