Skip to content
Snippets Groups Projects
Commit 8332feb0 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

daemon/engine: use MODULEDIR for Lua includes

parent 6bdadb9c
Branches
Tags
No related merge requests found
...@@ -243,7 +243,8 @@ static int engine_loadconf(struct engine *engine) ...@@ -243,7 +243,8 @@ static int engine_loadconf(struct engine *engine)
return kr_error(EINVAL); 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) int engine_start(struct engine *engine)
......
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