summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-19 18:17:28 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-04-19 18:17:28 +0200
commite8fe5e1e830658776413eb5e8af450ff4ae93ec7 (patch)
tree0a8dbdf46de02f86179c63249cb7833ee8d28fee /luaotfload.dtx
parentbd7ed57ad9f8cfc9e7a7dae148d567833f463278 (diff)
downloadluaotfload-e8fe5e1e830658776413eb5e8af450ff4ae93ec7.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.dtx9
1 files changed, 1 insertions, 8 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 818dbd9..8ffb8f9 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -905,14 +905,7 @@ end
local fl_prefix = "otfl" -- “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}