summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/luat-iop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/luat-iop.lua')
-rw-r--r--tex/context/base/mkiv/luat-iop.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/luat-iop.lua b/tex/context/base/mkiv/luat-iop.lua
new file mode 100644
index 000000000..e1772af4e
--- /dev/null
+++ b/tex/context/base/mkiv/luat-iop.lua
@@ -0,0 +1,24 @@
+if not modules then modules = { } end modules ['luat-iop'] = {
+ version = 1.001,
+ comment = "companion to luat-lib.mkiv",
+ author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
+ copyright = "PRAGMA ADE / ConTeXt Development Team",
+ license = "see context related readme files"
+}
+
+local cleanedpathlist = resolvers.cleanedpathlist
+local registerroot = sandbox.registerroot
+
+sandbox.initializer(function()
+ local function register(str,mode)
+ local trees = cleanedpathlist(str)
+ for i=1,#trees do
+ registerroot(trees[i],mode)
+ end
+ end
+ register("TEXMF","read")
+ register("TEXINPUTS","read")
+ register("MPINPUTS","read")
+ -- register("TEXMFCACHE","write")
+ registerroot(".","write")
+end)