calc module
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
package.path = package.path .. ";./?.lua;./modules/?.lua"
|
||||
|
||||
-- Add custom package searcher to handle FlexLove.modules.X imports
|
||||
local originalSearchers = package.searchers or package.loaders
|
||||
table.insert(originalSearchers, 2, function(modname)
|
||||
if modname:match("^FlexLove%.modules%.") then
|
||||
local moduleName = modname:gsub("^FlexLove%.modules%.", "")
|
||||
return function() return require("modules." .. moduleName) end
|
||||
end
|
||||
end)
|
||||
|
||||
require("testing.loveStub")
|
||||
local lu = require("testing.luaunit")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user