From e2c955bddb69d5c38fa480a1e6574088902c8947 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 15 May 2011 21:55:19 -0700 Subject: [PATCH] blobref fetcher: use osutil.CamliConfigDir, don't duplicate --- lib/go/camli/blobref/fetcher.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/go/camli/blobref/fetcher.go b/lib/go/camli/blobref/fetcher.go index 759819fc0..05122c4d5 100644 --- a/lib/go/camli/blobref/fetcher.go +++ b/lib/go/camli/blobref/fetcher.go @@ -26,6 +26,8 @@ import ( "path/filepath" "strings" "sync" + + "camli/osutil" ) var _ = log.Printf @@ -60,7 +62,7 @@ func NewSimpleDirectoryFetcher(dir string) *DirFetcher { } func NewConfigDirFetcher() *DirFetcher { - configDir := filepath.Join(os.Getenv("HOME"), ".camli", "keyblobs") + configDir := filepath.Join(osutil.CamliConfigDir(), "keyblobs") return NewSimpleDirectoryFetcher(configDir) }