1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 04:19:03 -08:00
mm/Lua/depend.lua

12 lines
240 B
Lua
Raw Normal View History

2015-05-15 21:55:11 -07:00
_require = _require or require
2015-05-25 21:24:29 -07:00
local function dumbdepend(path)
2015-05-15 21:55:11 -07:00
if package and package.loaded and package.loaded[path] then
package.loaded[path] = nil
end
-- TODO: pcall?
return _require(path)
end
2015-05-25 21:24:29 -07:00
2015-11-27 21:37:48 -08:00
return dumbdepend