From 4631216c2777192c3e6cec954a2885cee07d36d4 Mon Sep 17 00:00:00 2001 From: William Ferreira Date: Tue, 23 Jul 2019 00:40:11 -0300 Subject: [PATCH] Fix init.lua --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 07250f8..753eca2 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,6 @@ -- 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') +local args = {...} +local directory = args[1] +return require(directory .. '.tiny')