lua: add ?/init.lua as valid lib path
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9b364d0009
commit
88d9df6a09
1
lua.c
1
lua.c
|
@ -519,6 +519,7 @@ luaA_init(void)
|
||||||
lua_settable(L, LUA_GLOBALSINDEX);
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
|
|
||||||
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\"");
|
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\"");
|
||||||
|
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?/init.lua\"");
|
||||||
|
|
||||||
/* init hooks */
|
/* init hooks */
|
||||||
globalconf.hooks.manage = LUA_REFNIL;
|
globalconf.hooks.manage = LUA_REFNIL;
|
||||||
|
|
Loading…
Reference in New Issue