Fix the problems that the fixes have caused
This commit is contained in:
parent
e2e7ff467c
commit
c46219fa96
@ -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,...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user