Modify DefaultDataDir

This commit is contained in:
Julian Yap 2016-11-18 22:45:29 -10:00
parent 0d9a8207d6
commit 9762cbf101

View file

@ -38,11 +38,11 @@ func DefaultDataDir() string {
home := homeDir() home := homeDir()
if home != "" { if home != "" {
if runtime.GOOS == "darwin" { if runtime.GOOS == "darwin" {
return filepath.Join(home, "Library", "Ethereum") return filepath.Join(home, "Library", "Ubiq")
} else if runtime.GOOS == "windows" { } else if runtime.GOOS == "windows" {
return filepath.Join(home, "AppData", "Roaming", "Ethereum") return filepath.Join(home, "AppData", "Roaming", "Ubiq")
} else { } else {
return filepath.Join(home, ".ethereum") return filepath.Join(home, ".ubiq")
} }
} }
// As we cannot guess a stable location, return empty and handle later // As we cannot guess a stable location, return empty and handle later