server/game-e3/setup.lua

15 lines
281 B
Lua
Raw Normal View History

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',
'core/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
2014-04-24 15:24:35 +02:00
assert(read_xml())
2010-08-08 09:40:42 +02:00
require "init"