Update defaults.go

This commit is contained in:
Ethereum Inc 2018-03-12 21:31:13 +05:30 committed by GitHub
parent a6b3f7dbfc
commit 27fd0cd4a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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