Fix the problems caused by the fixes to the previous problems caused by the original fix
This commit is contained in:
parent
0edc70bac8
commit
b2b8430a68
@ -6,7 +6,11 @@ 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 os.run(_ENV,at) end
|
local e=getfenv(1)
|
||||||
|
if e.package and #e.package.loaders==2 then
|
||||||
|
table.insert(e.package.loaders,loader)
|
||||||
|
end
|
||||||
|
return loadfile(at,nil,e)
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user