2010-08-08 10:06:34 +02:00
|
|
|
local srcpath = config.source_dir
|
2014-07-23 12:19:24 +02:00
|
|
|
local respath = srcpath .. '/' .. config.rules .. '/res/'
|
|
|
|
local paths = { config.rules..'/scripts/?.lua';'lunit/?.lua','external/lunit/?.lua','scripts/?.lua';'scripts/?' }
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
tests = {'common'}
|
|
|
|
for idx, test in pairs(tests) do
|
|
|
|
tests[idx] = srcpath .. '/scripts/tests/' .. test .. '.lua'
|
|
|
|
end
|
|
|
|
|
|
|
|
for idx, path in pairs(paths) do
|
|
|
|
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
|
|
|
end
|
|
|
|
|
2014-07-23 12:19:24 +02:00
|
|
|
read_xml('config.xml', 'catalog.xml')
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
require "init"
|