2010-08-08 10:06:34 +02:00
|
|
|
local srcpath = config.source_dir
|
|
|
|
local respath = srcpath .. '/example/res'
|
|
|
|
local paths = {
|
|
|
|
'example/scripts/?.lua',
|
2010-08-08 11:28:47 +02:00
|
|
|
'shared/scripts/?.lua',
|
2010-08-08 10:06:34 +02:00
|
|
|
'external/lunit/?.lua'
|
|
|
|
}
|
|
|
|
|
|
|
|
for idx, path in pairs(paths) do
|
|
|
|
package.path = srcpath .. '/' .. path .. ';' .. package.path
|
|
|
|
end
|
|
|
|
|
|
|
|
read_xml(respath..'/config-example.xml', respath..'/catalog-example.xml')
|
|
|
|
|
|
|
|
require "init"
|