Accidentally deleted initial path logic.

This code is important for bootstrapping the LUA_PATH
This commit is contained in:
Enno Rehling 2014-08-12 23:15:35 +02:00
parent f0ac736bd1
commit 206e0a2fc5
1 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,11 @@ function run_turn(rules)
return result
end
local path = 'scripts'
if config.install then
path = config.install .. '/' .. path
end
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
require 'eressea'
require 'eressea.xmlconf' -- read xml data