Merge pull request #4035 from dhiltgen/fix_relative_paths

Fix relative path lookup
This commit is contained in:
Daniel Hiltgen 2024-04-29 16:08:06 -07:00 committed by GitHub
commit d4ac57e240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ func PayloadsDir() (string, error) {
}
var paths []string
for _, root := range []string{appExe, cwd} {
for _, root := range []string{filepath.Dir(appExe), cwd} {
paths = append(paths,
filepath.Join(root),
filepath.Join(root, "windows-"+runtime.GOARCH),