diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-11-12 19:54:50 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-11-12 19:54:50 +0100 |
commit | 0c75a2acf592eb4360685375904440f5e6b8125a (patch) | |
tree | 0a23a35bf947d13b3975bacdc27ad1d7edc9454c /tex/context/base/mkiv/core-uti.lua | |
parent | 5c195236a1a69b23762df71a791e6b4e2c671892 (diff) | |
download | context-0c75a2acf592eb4360685375904440f5e6b8125a.tar.gz |
2019-11-12 18:53:00
Diffstat (limited to 'tex/context/base/mkiv/core-uti.lua')
-rw-r--r-- | tex/context/base/mkiv/core-uti.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/core-uti.lua b/tex/context/base/mkiv/core-uti.lua index cd867db1b..50c7bc9dc 100644 --- a/tex/context/base/mkiv/core-uti.lua +++ b/tex/context/base/mkiv/core-uti.lua @@ -269,6 +269,16 @@ end local function load(filename) if lfs.isfile(filename) then + + local function dofile(filename) + local result = loadstring(io.loaddata(filename)) + if result then + return result() + else + return nil + end + end + local okay, data = pcall(dofile,filename) if okay and type(data) == "table" then local jobversion = job.version |