Fix the problems caused by the fixes to the previous problems caused by the original fix
This commit is contained in:
		| @@ -6,7 +6,11 @@ local function loader(mn) | ||||
| 		at=shell.dir().."/lib/"..mn..".lua" | ||||
| 	end | ||||
| 	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 | ||||
| 	return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua" | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user