server/scripts/eressea/path.lua
2021-02-22 02:03:45 +01:00

12 lines
281 B
Lua

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