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" | ||||
| 	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,...) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user