diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-19 18:17:28 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-22 16:05:16 +0200 |
commit | b4ae5d25bd724b449e76c9bd273670826f7bd01d (patch) | |
tree | 52bff9b92c40aafb02213299d33886374c3e78ba /luaotfload.dtx | |
parent | 30f83b71d2110d38b99069e4c22d950f097a9315 (diff) | |
download | luaotfload-b4ae5d25bd724b449e76c9bd273670826f7bd01d.tar.gz |
A more simple loadmodule function
Simply using the luatexbase way... May change in the future, but stick with it for now.
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r-- | luaotfload.dtx | 9 |
1 files changed, 1 insertions, 8 deletions
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} |