2010-08-08 09:40:42 +02:00
|
|
|
local srcpath = config.source_dir
|
2012-06-05 16:36:33 +02:00
|
|
|
local respath = srcpath .. '/res'
|
2010-08-08 09:40:42 +02:00
|
|
|
local paths = {
|
2012-06-05 16:36:33 +02:00
|
|
|
'scripts/?.lua',
|
2010-08-08 09:40:42 +02:00
|
|
|
'eressea/scripts/?.lua',
|
2012-06-05 16:36:33 +02:00
|
|
|
'lunit/?.lua'
|
2010-08-08 09:40:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for idx, path in pairs(paths) do
|
|
|
|
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
|
|
|
end
|
|
|
|
|
|
|
|
read_xml(respath..'/config-e3a.xml', respath..'/catalog-e3a.xml')
|
|
|
|
|
|
|
|
require "init"
|