Fix the problems that the fixes have caused

This commit is contained in:
v 2020-12-29 12:44:11 +00:00
parent e2e7ff467c
commit c46219fa96
1 changed files with 2 additions and 2 deletions

View File

@ -6,14 +6,14 @@ local function loader(mn)
at=shell.dir().."/lib/"..mn..".lua"
end
if at then
return function() return shell.run(at) end
return function() return os.run(_ENV,at) end
end
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
end
local osrun=_G.os.run
function _G.os.run(e,p,...)
if e.package then
if e.package and #e.package.loaders==2 then
table.insert(e.package.loaders,loader)
end
return osrun(e,p,...)