summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-07-19 16:19:42 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-07-19 16:19:42 +0100
commit0d126eab35e7cae8137ec5f62425258a56d5eb53 (patch)
tree51858ad129c64cb1acfc48d0b23c17d9574c5ed8 /src/lib/elua
parent7d443f30e2d99e41ff9efd7f7ce97e5d12f8fcb2 (diff)
downloadefl-0d126eab35e7cae8137ec5f62425258a56d5eb53.tar.gz
elua: enable module lookups in apps location
This will allow for better organization of the docgen script.
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/elua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index 606d04e45b..f537663d53 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -499,7 +499,7 @@ _elua_module_system_init(lua_State *L)
const char *modpath = es->moddir;
const char *appspath = es->appsdir;
Eina_Stringshare *data = NULL;
- int n = 3;
+ int n = 4;
if (!corepath || !modpath || !appspath)
return 0;
lua_pushvalue(L, 1);
@@ -515,6 +515,7 @@ _elua_module_system_init(lua_State *L)
}
lua_pushfstring(L, "%s/?.eo.lua;", modpath);
lua_pushfstring(L, "%s/?.lua;", modpath);
+ lua_pushfstring(L, "%s/?.lua;", appspath);
lua_pushvalue(L, 3);
lua_concat(L, n + 1);
lua_pushfstring(L, "%s/?.lua;", appspath);