From 6b9f68f0607f2b6c7a94b6b7c96d7188eeb0f8ef Mon Sep 17 00:00:00 2001 From: hackyminer Date: Sat, 22 Sep 2018 05:38:31 +0900 Subject: [PATCH] node: use APPDATA env to support cygwin/msys correctly --- node/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/defaults.go b/node/defaults.go index c1376dba0f..8e0655848b 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -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") }