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 /cmd/mist/ui_lib.go | |
parent | d82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff) | |
download | go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.bz2 go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.lz go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.xz go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip |
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'cmd/mist/ui_lib.go')
-rw-r--r-- | cmd/mist/ui_lib.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go index 4653e0980..eaf42db28 100644 --- a/cmd/mist/ui_lib.go +++ b/cmd/mist/ui_lib.go @@ -22,7 +22,8 @@ package main import ( "io/ioutil" - "path" + + "path/filepath" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" @@ -110,7 +111,7 @@ func (ui *UiLib) ConnectToPeer(nodeURL string) { } func (ui *UiLib) AssetPath(p string) string { - return path.Join(ui.assetPath, p) + return filepath.Join(ui.assetPath, p) } func (self *UiLib) Transact(params map[string]interface{}) (string, error) { @@ -218,7 +219,7 @@ func (self *UiLib) Messages(id int) *common.List { } func (self *UiLib) ReadFile(p string) string { - content, err := ioutil.ReadFile(self.AssetPath(path.Join("ext", p))) + content, err := ioutil.ReadFile(self.AssetPath(filepath.Join("ext", p))) if err != nil { guilogger.Infoln("error reading file", p, ":", err) } |