Fix init.lua

This commit is contained in:
William Ferreira 2019-07-23 00:40:11 -03:00
parent 7c7de1db0c
commit 4631216c27

View File

@ -1,5 +1,6 @@
-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or -- Helper Lua file for easy require if tiny-ecs is used as a git submodule or
-- folder. Not needed in many cases, including luarocks distribution. -- folder. Not needed in many cases, including luarocks distribution.
local directory = (...):match("(.-)[^%.]+$") local args = {...}
return require(directory .. 'tiny') local directory = args[1]
return require(directory .. '.tiny')