From 206e0a2fc514853bbb6156780bc241e9ce823d0a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 12 Aug 2014 23:15:35 +0200 Subject: [PATCH] Accidentally deleted initial path logic. This code is important for bootstrapping the LUA_PATH --- scripts/run-turn.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run-turn.lua b/scripts/run-turn.lua index 92d07ad6b..f938c8514 100644 --- a/scripts/run-turn.lua +++ b/scripts/run-turn.lua @@ -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