add a basic filesystem library and use it for path concat

This commit is contained in:
Squibid 2025-10-22 22:40:19 -04:00
parent 9e55195f8d
commit 8e4f56d147
Signed by: squibid
GPG key ID: BECE5684D3C4005D
3 changed files with 52 additions and 3 deletions

View file

@ -4,8 +4,8 @@ if not env_conf then
if not env_conf then
error("Couldn't determine potential config directory is $HOME set?")
end
env_conf = env_conf.."/.config/"
env_conf = mez.fs.joinpath(env_conf, ".config")
end
mez.path.config = env_conf.."/mez/init.lua"
package.path = package.path..";"..env_conf.."/mez/lua/?.lua"
mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua")
package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua")