1 local os
= require("os")
2 local old_require
= require
3 if os
.getenv('LUA_OLD_INIT') then
4 assert(loadstring(os
.getenv('LUA_OLD_INIT')))()
6 require("luarocks.require")
8 local luarocks_require
= require
10 function require(module
, ...)
11 if module
== "json" or module
:match("^json%.") then
12 return old_require(module
, ...)
14 return luarocks_require(module
, ...)