summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/tex/context/base/luat-cod.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/luat-cod.lua b/Master/texmf-dist/tex/context/base/luat-cod.lua
index a9cd4551b3b..ab21fef09c6 100644
--- a/Master/texmf-dist/tex/context/base/luat-cod.lua
+++ b/Master/texmf-dist/tex/context/base/luat-cod.lua
@@ -78,7 +78,8 @@ environment = environment or { }
local environment = environment
local sourcefile = arg and arg[1] or ""
-local sourcepath = find(sourcefile,"/") and gsub(sourcefile,"/[^/]+$","") or ""
+local sourcepath = gsub (sourcefile,"^\"(.*)\"$", "%1")
+sourcepath = find(sourcepath,"/") and gsub(sourcepath,"/[^/]+$","") or ""
local targetpath = "."
-- delayed (via metatable):