Commit 8332feb0 authored by Marek Vavruša's avatar Marek Vavruša

daemon/engine: use MODULEDIR for Lua includes

parent 6bdadb9c
......@@ -243,7 +243,8 @@ static int engine_loadconf(struct engine *engine)
return kr_error(EINVAL);
return kr_ok();
/* Use module path for including Lua scripts */
return engine_cmd(engine, "package.path = '" MODULEDIR "/?.lua;'..package.path");
int engine_start(struct engine *engine)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment