iteration

This commit is contained in:
2023-10-08 04:04:21 -04:00
parent c9e6e5d229
commit f0233a640d
13 changed files with 130 additions and 111 deletions

View File

@ -1,3 +1,12 @@
local bin_path = "/bin/"
shell.setPath(shell.path() .. ":" .. bin_path)
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