Skip to content

Commit

Permalink
fix: export PATH env to engine destination folder to have additional …
Browse files Browse the repository at this point in the history
…dlls scoped
  • Loading branch information
louis-jan committed Nov 7, 2024
1 parent 0e65379 commit e41bcff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/inference-cortex-extension/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ function run(systemInfo?: SystemInformation): Promise<any> {
addEnvPaths(path.join(appResourcePath(), 'shared'))
addEnvPaths(executableOptions.binPath)
addEnvPaths(executableOptions.enginePath)
// Add the cortex.llamacpp path to the PATH and LD_LIBRARY_PATH
// This is required for the cortex engine to run for now since dlls are not moved to the root
addEnvPaths(
path.join(executableOptions.enginePath, 'engines', 'cortex.llamacpp')
)

const dataFolderPath = getJanDataFolderPath()
watchdog = new ProcessWatchdog(
Expand Down

0 comments on commit e41bcff

Please sign in to comment.