diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/tex/context/base/luat-cod.lua | 3 |
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): |