Explorar el Código

Merge pull request #4035 from dhiltgen/fix_relative_paths

Fix relative path lookup
Daniel Hiltgen hace 1 año
padre
commit
d4ac57e240
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gpu/assets.go

+ 1 - 1
gpu/assets.go

@@ -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),