Windows preferes dll over so
This commit is contained in:
parent
6781dabe7b
commit
f67179197a
@ -1,6 +1,6 @@
|
|||||||
do
|
do
|
||||||
local ourpath = lua.startupfile:match('(.*[/\\])[^/\\]*%.lua$')
|
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
|
end
|
||||||
local interaction
|
local interaction
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user