Parcourir la source

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

pull/1/head
XeonSquared il y a 4 ans
Parent
révision
68130b80a6
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      exec/shell.lua

+ 2
- 0
exec/shell.lua Voir le fichier

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


Chargement…
Annuler
Enregistrer