From 17b8126f260a4f80a041ab179ceb68abf425c359 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 18 Nov 2015 07:47:47 +0100 Subject: [init] fix pathless Context module loading --- src/luaotfload-init.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/luaotfload-init.lua') diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua index 2755f78..f1d1a8e 100644 --- a/src/luaotfload-init.lua +++ b/src/luaotfload-init.lua @@ -228,8 +228,8 @@ local context_modules = { local load_context_modules = function (pth) - local load_context_module = luaotfload.loaders.context - local ignore_module = luaotfload.loaders.ignore + local load_module = luaotfload.loaders.context + local ignore_module = luaotfload.loaders.ignore logreport ("both", 2, "init", "Loading fontloader components from context.") @@ -239,7 +239,11 @@ local load_context_modules = function (pth) if sub == false then ignore_module (spec) elseif type (sub) == "string" then - load_context_module (spec, file.join (pth, sub)) + if pth then + load_module (spec, file.join (pth, sub)) + else + load_module (spec) + end else logreport ("both", 0, "init", "Internal error, please report. \z -- cgit v1.2.3