awesomewm.d.tl/set_paths.lua

16 lines
455 B
Lua
Raw Normal View History

2022-06-26 17:37:53 +02:00
local version = _VERSION:match "%d+%.%d+"
local function lua_module_paths(module_base_path)
local paths = (module_base_path .. "/?.lua;")
.. (module_base_path .. "/?/init.lua;")
return paths
end
package.path = lua_module_paths("lua_modules/share/lua/" .. version)
.. lua_module_paths "types"
.. lua_module_paths "build/awesomewm.d.tl"
2022-06-26 17:37:53 +02:00
.. package.path
package.cpath = "lua_modules/lib/lua/" .. version .. "/?.so;" .. package.cpath