summaryrefslogtreecommitdiff
path: root/tex/context/base/file-lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/file-lib.lua')
-rw-r--r--tex/context/base/file-lib.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/file-lib.lua b/tex/context/base/file-lib.lua
index c99c2ac41..92dacbf5c 100644
--- a/tex/context/base/file-lib.lua
+++ b/tex/context/base/file-lib.lua
@@ -33,7 +33,6 @@ function commands.uselibrary(specification) -- todo; reporter
local failure = specification.failure or defaultfailure
local onlyonce = specification.onlyonce
local files = utilities.parsers.settings_to_array(name)
- local truename = environment.truefilename
local done = false
for i=1,#files do
local filename = files[i]
@@ -43,9 +42,9 @@ function commands.uselibrary(specification) -- todo; reporter
end
for i=1,#patterns do
local somename = format(patterns[i],filename)
- if truename then
- somename = truename(somename)
- end
+if environment.truefilename then
+ somename = environment.truefilename(somename)
+end
local foundname = resolvers.getreadfilename("any",".",somename) or ""
if foundname ~= "" then
action(name,foundname)