aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-29 00:08:13 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-29 00:10:48 +0200
commit68ac563c8ce709fe55d3cf38ea230ea78d633d6a (patch)
treebd0e2f7b08c5d9cb5087c83a6d904b202615507e
parent2703a86595011794e7c02912678fa8b0c2daf56a (diff)
Change search directory for xds-gdb.env
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 64bbcb9..4302e9c 100644
--- 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)