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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user