Files
koreader-mirror/setupkoenv.lua
Martín Fernández e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00

10 lines
299 B
Lua

-- Set search path for `require()`.
package.path =
"common/?.lua;frontend/?.lua;plugins/exporter.koplugin/?.lua;" ..
package.path
package.cpath =
"common/?.so;common/?.dll;/usr/lib/lua/?.so;" ..
package.cpath
-- Setup `ffi.load` override and 'loadlib' helper.
require("ffi/loadlib")