Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gEnv = nil
- function init(env)
- gEnv = env
- end
- function include(fName)
- local b = loadfile(fName)
- if type(b) == "function" then
- setfenv(b,gEnv)
- local t = b()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement