made the shell look at libraries in _G.libs as well as just _G

This commit is contained in:
Izaya 2019-12-20 17:48:25 +11:00
parent 200b99eb0c
commit 68130b80a6

View File

@ -21,6 +21,8 @@ setmetatable(shenv,{__index=function(_,k)
local fp = findPath(k)
if _G[k] then
return _G[k]
elseif _G.libs[k] then
return _G.libs[k]
elseif fp then
return function(...)
local tA = {...}