Fix the problems that the fixes have caused
This commit is contained in:
@@ -6,14 +6,14 @@ local function loader(mn)
|
|||||||
at=shell.dir().."/lib/"..mn..".lua"
|
at=shell.dir().."/lib/"..mn..".lua"
|
||||||
end
|
end
|
||||||
if at then
|
if at then
|
||||||
return function() return shell.run(at) end
|
return function() return os.run(_ENV,at) end
|
||||||
end
|
end
|
||||||
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
|
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
|
||||||
end
|
end
|
||||||
|
|
||||||
local osrun=_G.os.run
|
local osrun=_G.os.run
|
||||||
function _G.os.run(e,p,...)
|
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)
|
table.insert(e.package.loaders,loader)
|
||||||
end
|
end
|
||||||
return osrun(e,p,...)
|
return osrun(e,p,...)
|
||||||
|
|||||||
Reference in New Issue
Block a user