diff --git a/store/file.go b/store/file.go index 48ce626e..54396658 100644 --- a/store/file.go +++ b/store/file.go @@ -14,13 +14,15 @@ import ( ) var ( + HomeDir, _ = os.UserHomeDir() + // DefaultDatabase is the namespace that the bbolt store // will use if no namespace is provided. DefaultDatabase = "micro" // DefaultTable when none is specified. DefaultTable = "micro" // DefaultDir is the default directory for bbolt files. - DefaultDir = filepath.Join(".", "micro", "store") + DefaultDir = filepath.Join(HomeDir, "micro", "store") // bucket used for data storage. dataBucket = "data"