diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-07-27 19:52:30 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-07-27 19:52:30 +0200 |
commit | df12f144a2cb09cec29a95df26bdfc5ccad58aff (patch) | |
tree | f25cb74e040f21e898e270c1299899b51b34bba7 /tex/context/base/mkiv/grph-inc.lua | |
parent | c73351bc5e590d5a7ebd2b0f13f895a447d25794 (diff) | |
download | context-df12f144a2cb09cec29a95df26bdfc5ccad58aff.tar.gz |
2021-07-27 19:27:00
Diffstat (limited to 'tex/context/base/mkiv/grph-inc.lua')
-rw-r--r-- | tex/context/base/mkiv/grph-inc.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/grph-inc.lua b/tex/context/base/mkiv/grph-inc.lua index 3789191f1..f8dcc658b 100644 --- a/tex/context/base/mkiv/grph-inc.lua +++ b/tex/context/base/mkiv/grph-inc.lua @@ -822,6 +822,10 @@ local function register(askedname,specification) local oldname = specification.fullname local newpath = file.dirname(oldname) local oldbase = file.basename(oldname) + local runpath = environment.arguments.runpath + if runpath and runpath ~= "" and newpath == environment.arguments.path then + newpath = runpath + end -- -- problem: we can have weird filenames, like a.b.c (no suffix) and a.b.c.gif -- so we cannot safely remove a suffix (unless we do that for known suffixes) |