aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/gui.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 23:23:46 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 23:23:46 +0800
commit58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd (patch)
treea5bfb1a0ade11c7f68d0322b9773e8c46571c455 /cmd/mist/gui.go
parentf87094b660c95b547486e7439620e68f3d59c45f (diff)
parent899df30c24c85ca0b2dadd4cbb251a4ec5ca1a75 (diff)
downloaddexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.gz
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.bz2
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.lz
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.xz
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.zst
dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.zip
Merge pull request #933 from bas-vk/issue928
replaced path with platform aware filepath module
Diffstat (limited to 'cmd/mist/gui.go')
-rw-r--r--cmd/mist/gui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go
index 66614478c..53194ae50 100644
--- a/cmd/mist/gui.go
+++ b/cmd/mist/gui.go
@@ -27,7 +27,7 @@ import (
"fmt"
"io/ioutil"
"math/big"
- "path"
+ "path/filepath"
"runtime"
"sort"
"time"
@@ -79,7 +79,7 @@ type Gui struct {
// Create GUI, but doesn't start it
func NewWindow(ethereum *eth.Ethereum) *Gui {
- db, err := ethdb.NewLDBDatabase(path.Join(ethereum.DataDir, "tx_database"))
+ db, err := ethdb.NewLDBDatabase(filepath.Join(ethereum.DataDir, "tx_database"))
if err != nil {
panic(err)
}
@@ -92,7 +92,7 @@ func NewWindow(ethereum *eth.Ethereum) *Gui {
plugins: make(map[string]plugin),
serviceEvents: make(chan ServEv, 1),
}
- data, _ := ioutil.ReadFile(path.Join(ethereum.DataDir, "plugins.json"))
+ data, _ := ioutil.ReadFile(filepath.Join(ethereum.DataDir, "plugins.json"))
json.Unmarshal(data, &gui.plugins)
return gui