computercraft/utils/lsh.lua

12 lines
253 B
Lua
Raw Normal View History

2023-10-08 06:19:55 +02:00
local bin_path = "/bin/"
2023-10-08 10:04:21 +02:00
local lib_path = "/lib/"
shell.setPath(shell.path() .. ":" .. bin_path)
-- Load libraries
for _, file in ipairs(fs.list(lib_path)) do
if not fs.isDir(lib_path .. file) then
os.loadAPI(lib_path .. file)
end
end