made the shell look at libraries in _G.libs as well as just _G
This commit is contained in:
parent
200b99eb0c
commit
68130b80a6
@ -21,6 +21,8 @@ setmetatable(shenv,{__index=function(_,k)
|
|||||||
local fp = findPath(k)
|
local fp = findPath(k)
|
||||||
if _G[k] then
|
if _G[k] then
|
||||||
return _G[k]
|
return _G[k]
|
||||||
|
elseif _G.libs[k] then
|
||||||
|
return _G.libs[k]
|
||||||
elseif fp then
|
elseif fp then
|
||||||
return function(...)
|
return function(...)
|
||||||
local tA = {...}
|
local tA = {...}
|
||||||
|
Loading…
Reference in New Issue
Block a user