q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e2351f008642dc90d211ad1555079b4d615a3548

commit e2351f008642dc90d211ad1555079b4d615a3548
Author: Daniel Kolesa <d.kol...@samsung.com>
Date:   Wed Nov 19 14:05:18 2014 +0000

    allow for loading of eo.lua files from module path
---
 src/bin/elua/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/elua/main.c b/src/bin/elua/main.c
index b1703e9..424d5b9 100644
--- a/src/bin/elua/main.c
+++ b/src/bin/elua/main.c
@@ -126,7 +126,7 @@ elua_register_require(lua_State *L)
    Eina_Bool   noenv    = lua_toboolean (L, lua_upvalueindex(5));
    Arg_Data   *data     = NULL;
    char corepathbuf[PATH_MAX], modpathbuf[PATH_MAX], appspathbuf[PATH_MAX];
-   int n = 2;
+   int n = 3;
    lua_pushvalue(L, 1);
    elua_require_ref = luaL_ref(L, LUA_REGISTRYINDEX);
    lua_pushvalue(L, 2);
@@ -174,6 +174,7 @@ elua_register_require(lua_State *L)
         lua_pushfstring(L, "%s/?.lua;", data->value);
         ++n;
      }
+   lua_pushfstring(L, "%s/?.eo.lua;", modpath);
    lua_pushfstring(L, "%s/?.lua;", modpath);
    lua_pushvalue(L, 3);
    lua_concat(L, n + 1);

-- 


Reply via email to