diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
commit | b79dd188d916da7adbf448dc27b0c59a04e0938d (patch) | |
tree | 7980ae848a916171fbc65fb958eebdf0c98406dc /generators | |
parent | d82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff) | |
download | dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.bz2 dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.lz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.xz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip |
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'generators')
-rw-r--r-- | generators/defaults.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/defaults.go b/generators/defaults.go index 41d46729c..d30a56434 100644 --- a/generators/defaults.go +++ b/generators/defaults.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "os" "os/exec" - "path" + "path/filepath" "strings" ) @@ -35,7 +35,7 @@ func main() { m := make(map[string]setting) json.Unmarshal(content, &m) - filepath := path.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "params", os.Args[2]) + filepath := filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "params", os.Args[2]) output, err := os.OpenFile(filepath, os.O_RDWR|os.O_CREATE, os.ModePerm /*0777*/) if err != nil { fatal("error opening file for writing %v\n", err) |