lua: add ?/init.lua as valid lib path

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-01 19:10:25 +02:00
parent 9b364d0009
commit 88d9df6a09
1 changed files with 1 additions and 0 deletions

1
lua.c
View File

@ -519,6 +519,7 @@ luaA_init(void)
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 "/?/init.lua\"");
/* init hooks */
globalconf.hooks.manage = LUA_REFNIL;