server/game-e2/setup.lua

21 lines
479 B
Lua
Raw Normal View History

2010-03-09 08:43:15 +01:00
local srcpath = config.source_dir
local respath = srcpath .. '/eressea/res'
local paths = {
'eressea/scripts/?.lua',
'server/scripts/?.lua',
'external/lunit/?.lua'
}
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/eressea.lua',
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-eressea.xml', respath..'/catalog-eressea.xml')
require "init"