Windows preferes dll over so

This commit is contained in:
Marcel Krüger 2020-07-09 14:56:59 +02:00
parent 6781dabe7b
commit f67179197a
2 changed files with 1 additions and 1 deletions

BIN
kpse.dll Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
do
local ourpath = lua.startupfile:match('(.*[/\\])[^/\\]*%.lua$')
kpse = assert(package.loadlib(ourpath .. 'kpse.so', 'luaopen_kpse'))()
kpse = assert(package.loadlib(ourpath .. 'kpse.' .. (os.type == 'windows' and 'dll' or 'so'), 'luaopen_kpse'))()
end
local interaction
do