[lua] Fix Lua lib path
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ddae225363
commit
7adc9efef3
|
@ -107,7 +107,7 @@ AS_IF([test "x$WHOAMI" = "xfalse"], [aw_whoami="???"], [aw_whoami=`$WHOAMI`])
|
|||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_BY], ["$aw_whoami"], [build user])
|
||||
|
||||
AS_AC_EXPAND(awesomelibdir, "$datarootdir/awesome/lib")
|
||||
AC_DEFINE_UNQUOTED([AWESOME_LIB_PATH], "${awesomelibdir}", [awesome lib path])
|
||||
AC_DEFINE_UNQUOTED([AWESOME_LUA_LIB_PATH], "${awesomelibdir}", [awesome lib path])
|
||||
|
||||
# Checks for libraries.
|
||||
AC_PATH_XTRA
|
||||
|
|
2
lua.c
2
lua.c
|
@ -348,7 +348,7 @@ luaA_parserc(const char *rcfile)
|
|||
draw_color_new(globalconf.connection, globalconf.default_screen, "black", &globalconf.colors.fg);
|
||||
draw_color_new(globalconf.connection, globalconf.default_screen, "white", &globalconf.colors.bg);
|
||||
|
||||
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LIB_PATH "?.lua\"");
|
||||
luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\"");
|
||||
|
||||
if(luaL_dofile(L, rcfile))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue