diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-06 21:02:16 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-06 21:02:16 +0800 |
commit | e64f727529287b7414af6d1f482ea5f318cbd2eb (patch) | |
tree | f1939dffc5973597e6da17ef60ad2044af7f4340 /cmd/mist | |
parent | a91bf014295bfaebee976f9e0e994e8a83e8e356 (diff) | |
parent | de86403f330e68df8fc4aee00df98374b7842d0d (diff) | |
download | go-tangerine-e64f727529287b7414af6d1f482ea5f318cbd2eb.tar.gz go-tangerine-e64f727529287b7414af6d1f482ea5f318cbd2eb.tar.zst go-tangerine-e64f727529287b7414af6d1f482ea5f318cbd2eb.zip |
Merge pull request #433 from fjl/newcli
Improved CLI
Diffstat (limited to 'cmd/mist')
-rw-r--r-- | cmd/mist/bindings.go | 4 | ||||
-rw-r--r-- | cmd/mist/gui.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/mist/bindings.go b/cmd/mist/bindings.go index 9623538a3..f21aa3135 100644 --- a/cmd/mist/bindings.go +++ b/cmd/mist/bindings.go @@ -79,14 +79,14 @@ func (self *Gui) AddPlugin(pluginPath string) { self.plugins[pluginPath] = plugin{Name: pluginPath, Path: pluginPath} json, _ := json.MarshalIndent(self.plugins, "", " ") - ethutil.WriteFile(ethutil.Config.ExecPath+"/plugins.json", json) + ethutil.WriteFile(self.eth.DataDir+"/plugins.json", json) } func (self *Gui) RemovePlugin(pluginPath string) { delete(self.plugins, pluginPath) json, _ := json.MarshalIndent(self.plugins, "", " ") - ethutil.WriteFile(ethutil.Config.ExecPath+"/plugins.json", json) + ethutil.WriteFile(self.eth.DataDir+"/plugins.json", json) } // this extra function needed to give int typecast value to gui widget diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go index a69049894..869b689dd 100644 --- a/cmd/mist/gui.go +++ b/cmd/mist/gui.go @@ -99,7 +99,7 @@ func NewWindow(ethereum *eth.Ethereum, config *ethutil.ConfigManager, session st plugins: make(map[string]plugin), serviceEvents: make(chan ServEv, 1), } - data, _ := ethutil.ReadAllFile(path.Join(ethutil.Config.ExecPath, "plugins.json")) + data, _ := ethutil.ReadAllFile(path.Join(ethereum.DataDir, "plugins.json")) json.Unmarshal([]byte(data), &gui.plugins) return gui |