1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-06-30 22:07:11 -07:00
mm/Lua/depend.lua
2015-05-15 21:55:11 -07:00

10 lines
275 B
Lua

_require = _require or require
return function(path)
if package and package.loaded and package.loaded[path] then
-- TODO: check if file is more recent using luanet hacks
package.loaded[path] = nil
end
-- TODO: pcall?
return _require(path)
end