Change search directory for xds-gdb.env
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 28 Aug 2017 22:08:13 +0000 (00:08 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 28 Aug 2017 22:10:48 +0000 (00:10 +0200)
main.go

diff --git a/main.go b/main.go
index 64bbcb9..4302e9c 100644 (file)
--- a/main.go
+++ b/main.go
@@ -499,9 +499,9 @@ func loadConfigEnvFile(confFile, gdbCmdFile string) (map[string]string, string,
                        xdsEnvFile := "xds-gdb.env"
                        for _, d := range []string{
                                path.Join(curDir),
-                               path.Join(curDir, "..", ".."),
-                               path.Join(curDir, "../../target"),
-                               path.Join(u.HomeDir, ".xds"),
+                               path.Join(curDir, ".."),
+                               path.Join(curDir, "target"),
+                               path.Join(u.HomeDir, ".config", "xds"),
                        } {
                                confFile = path.Join(d, xdsEnvFile)
                                log.Infof("Search config in %s", confFile)