Skip to content

Commit

Permalink
fix(core): Fixup class loader so cache is all Lua module specs
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 11, 2023
1 parent f716c35 commit d29fc55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/sile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ SILE.require = function (dependency, pathprefix, deprecation_ack)
dependency = dependency:gsub(".lua$", "")
local status, lib
if pathprefix then
status, lib = pcall(require, pl.path.join(pathprefix, dependency))
-- Note this is not a *path*, it is a module identifier:
-- https://github.com/sile-typesetter/sile/issues/1861
status, lib = pcall(require, pl.stringx.join('.', { pathprefix, dependency }))
end
if not status then
local prefixederror = lib
Expand Down

0 comments on commit d29fc55

Please sign in to comment.