Add init.lua for easy require if used as a submodule.

This commit is contained in:
bakpakin 2016-05-19 17:50:54 +08:00
parent a518e15e44
commit ee192d94af

5
init.lua Normal file
View File

@ -0,0 +1,5 @@
-- 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.
local directory = (...):match("(.-)[^%.]+$")
return require(directory .. 'tiny')