diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-01-05 19:27:30 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-01-05 19:27:30 +0100 |
commit | 3c6f642365d2b780f86500135904c0a902f37ebf (patch) | |
tree | 3922f2ab17e9fa6f9e9ba7aa9a6301f7a9a96189 /tex/context/base/data-lua.lua | |
parent | b3a298788d63d224d2be014804307741443924e7 (diff) | |
download | context-3c6f642365d2b780f86500135904c0a902f37ebf.tar.gz |
beta 2011.11.22 16:49
Diffstat (limited to 'tex/context/base/data-lua.lua')
-rw-r--r-- | tex/context/base/data-lua.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/base/data-lua.lua b/tex/context/base/data-lua.lua index 065714407..906a611ee 100644 --- a/tex/context/base/data-lua.lua +++ b/tex/context/base/data-lua.lua @@ -78,8 +78,15 @@ local function loaded(libpaths,name,simple) end package.loaders[2] = function(name) -- was [#package.loaders+1] - if trace_locating then -- mode detail - report_libraries("! locating '%s'",name) + if file.suffix(name) == "" then + name = file.addsuffix(name,"lua") -- maybe a list + if trace_locating then -- mode detail + report_libraries("! locating '%s' with forced suffix",name) + end + else + if trace_locating then -- mode detail + report_libraries("! locating '%s'",name) + end end for i=1,#libformats do local format = libformats[i] |