1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-24 12:17:40 +00:00

path fix + compat changes

This commit is contained in:
kepler155c@gmail.com
2019-07-20 16:23:48 -06:00
parent 09be81be27
commit 30b7199976
4 changed files with 6 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ end
if not fs.exists('usr/config/shell') then
Util.writeTable('usr/config/shell', {
aliases = shell.aliases(),
path = 'usr/apps',
path = '/usr/apps',
lua_path = package.path,
upgraded = 1,
})
@@ -36,7 +36,7 @@ if config.aliases then
end
local path = config.path and Util.split(config.path, '(.-):') or { }
table.insert(path, 'sys/apps')
table.insert(path, '/sys/apps')
for _, v in pairs(Util.split(shell.path(), '(.-):')) do
table.insert(path, v)
end

View File

@@ -13,7 +13,7 @@ table.insert(helpPaths, '/sys/help')
for name in pairs(Packages:installed()) do
local packageDir = fs.combine('packages', name)
table.insert(appPaths, 1, packageDir)
table.insert(appPaths, 1, '/' .. packageDir)
local apiPath = fs.combine(packageDir, 'apis')
if fs.exists(apiPath) then
fs.mount(fs.combine('rom/modules/main', name), 'linkfs', apiPath)