From b4ae5d25bd724b449e76c9bd273670826f7bd01d Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Fri, 19 Apr 2013 18:17:28 +0200 Subject: A more simple loadmodule function Simply using the luatexbase way... May change in the future, but stick with it for now. --- luaotfload.dtx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'luaotfload.dtx') diff --git a/luaotfload.dtx b/luaotfload.dtx index efc53eb..07035a4 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1080,14 +1080,7 @@ end local fl_prefix = "luaotfload" -- “luatex” for luatex-plain local loadmodule = function (name) - local tofind = fl_prefix .."-"..name - local found = find_file(tofind,"tex") - if found then - log("loading file %s.", found) - dofile(found) - else - error("file %s not found.", tofind) - end + require(fl_prefix .."-"..name) end % \end{macrocode} -- cgit v1.2.3