local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) -- DIR_DELIM 2345 < is 5 chars shorter, and I hate it! c.dofolder(modpath .. modpath:match("[\\/]") .. "open", function(filePath) if filePath:match("^.+%.(.+)$") == "lua" then dofile(modpath .. modpath:match("[\\/]") .. "open"..modpath:match("[\\/]")..filePath) end --print(filePath) end)