server/game-e2/setup.lua

16 lines
364 B
Lua
Raw Normal View History

2010-08-08 09:40:42 +02:00
local srcpath = config.source_dir
local respath = srcpath .. '/eressea/res'
local paths = {
'eressea/scripts/?.lua',
2011-04-27 06:40:28 +02:00
'shared/scripts/?.lua',
2010-08-08 09:40:42 +02:00
'external/lunit/?.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"