mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
node: use APPDATA env to support cygwin/msys correctly
This commit is contained in:
parent
d9e324a331
commit
6b9f68f060
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ func DefaultDataDir() string {
|
|||
if runtime.GOOS == "darwin" {
|
||||
return filepath.Join(home, "Library", "Ethereum")
|
||||
} else if runtime.GOOS == "windows" {
|
||||
return filepath.Join(home, "AppData", "Roaming", "Ethereum")
|
||||
return filepath.Join(os.Getenv("APPDATA"), "Ethereum")
|
||||
} else {
|
||||
return filepath.Join(home, ".ethereum")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue