server/scripts/eressea/path.lua

10 lines
244 B
Lua
Raw Permalink Normal View History

local path = '.'
if config.install then
path = config.install
else
2021-02-23 17:57:44 +01:00
path = os.getenv("ERESSEA_ROOT") or path
config.install = path
end
path = path .. "/scripts"
package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path