server/scripts/eressea/path.lua
2021-02-23 17:57:44 +01:00

9 lines
244 B
Lua

local path = '.'
if config.install then
path = config.install
else
path = os.getenv("ERESSEA_ROOT") or path
config.install = path
end
path = path .. "/scripts"
package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path