From ff9caa39ca98c3057b9ec689cef9be094c293ba6 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Tue, 10 Apr 2012 12:40:17 +0200 Subject: Fix issue #2: init doesn't grab BASE correctly. --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e43305b..c122ee5 100644 --- a/init.lua +++ b/init.lua @@ -24,7 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]]-- -local BASE = ((...):match('(.+)%.') or ...) .. '.' +local BASE = (...) .. '.' +assert(not BASE:match('%.init%.$'), "Invalid require path `"..(...).."' (drop the `.init').") return { core = require(BASE .. 'core'), -- cgit v1.2.3-54-g00ecf