From c8a42104d3a6d50d1f568cafa1c2be4d12d3fbaf Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Mon, 27 Apr 2009 14:10:53 +0200 Subject: [PATCH] make current environment available to nested environment config files Signed-off-by: Gordon Hecker --- local/e2tool.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/e2tool.lua b/local/e2tool.lua index b5c4c14..e774ce6 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -383,7 +383,7 @@ The newest configuration syntax supported by the tools is %s. if type(tab) == "string" then local path2 = info.root .. "/" .. tab e2lib.log(3, "loading " .. path2) - e2lib.dofile_protected(path2, { env=lua_should_have_localrec }) + e2lib.dofile_protected(path2, { env=lua_should_have_localrec, e2env = info.env }) elseif type(tab) == "table" then for k, v in pairs(tab) do -- for each result... if type(k) ~= "string" then -- 2.39.5