mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
Merge pull request #4035 from dhiltgen/fix_relative_paths
Fix relative path lookup
This commit is contained in:
commit
d4ac57e240
@ -40,7 +40,7 @@ func PayloadsDir() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var paths []string
|
var paths []string
|
||||||
for _, root := range []string{appExe, cwd} {
|
for _, root := range []string{filepath.Dir(appExe), cwd} {
|
||||||
paths = append(paths,
|
paths = append(paths,
|
||||||
filepath.Join(root),
|
filepath.Join(root),
|
||||||
filepath.Join(root, "windows-"+runtime.GOARCH),
|
filepath.Join(root, "windows-"+runtime.GOARCH),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user