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
1 changed files with 2 additions and 0 deletions

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 = {...}