summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elua/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/elua/main.c b/src/bin/elua/main.c
index b1703e95bc..424d5b9f37 100644
--- a/src/bin/elua/main.c
+++ b/src/bin/elua/main.c
@@ -126,7 +126,7 @@ elua_register_require(lua_State *L)
126 Eina_Bool noenv = lua_toboolean (L, lua_upvalueindex(5)); 126 Eina_Bool noenv = lua_toboolean (L, lua_upvalueindex(5));
127 Arg_Data *data = NULL; 127 Arg_Data *data = NULL;
128 char corepathbuf[PATH_MAX], modpathbuf[PATH_MAX], appspathbuf[PATH_MAX]; 128 char corepathbuf[PATH_MAX], modpathbuf[PATH_MAX], appspathbuf[PATH_MAX];
129 int n = 2; 129 int n = 3;
130 lua_pushvalue(L, 1); 130 lua_pushvalue(L, 1);
131 elua_require_ref = luaL_ref(L, LUA_REGISTRYINDEX); 131 elua_require_ref = luaL_ref(L, LUA_REGISTRYINDEX);
132 lua_pushvalue(L, 2); 132 lua_pushvalue(L, 2);
@@ -174,6 +174,7 @@ elua_register_require(lua_State *L)
174 lua_pushfstring(L, "%s/?.lua;", data->value); 174 lua_pushfstring(L, "%s/?.lua;", data->value);
175 ++n; 175 ++n;
176 } 176 }
177 lua_pushfstring(L, "%s/?.eo.lua;", modpath);
177 lua_pushfstring(L, "%s/?.lua;", modpath); 178 lua_pushfstring(L, "%s/?.lua;", modpath);
178 lua_pushvalue(L, 3); 179 lua_pushvalue(L, 3);
179 lua_concat(L, n + 1); 180 lua_concat(L, n + 1);