1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-12 14:27:41 +00:00

package manager wip

This commit is contained in:
kepler155c@gmail.com
2018-10-21 04:46:40 -04:00
parent b7176e55ad
commit 97c4b7a090
2 changed files with 9 additions and 3 deletions

View File

@@ -30,8 +30,11 @@ for name, package in pairs(Packages:installed()) do
fs.mount(table.unpack(Util.matches(package.mount)))
end
addPath(appPaths, fs.combine(fs.combine('packages', name), 'apps'))
addPath(luaPaths, fs.combine(fs.combine('packages', name), 'apis'))
addPath(appPaths, fs.combine('packages', name))
local apiPath = fs.combine(fs.combine('packages', name), 'apis')
if fs.exists(apiPath) then
addPath(luaPaths, apiPath)
end
end
shell.setPath(table.concat(appPaths, ':'))