aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/config.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-03-27 18:14:04 +0800
committerzelig <viktor.tron@gmail.com>2014-03-27 18:14:04 +0800
commit49c710bf442940b3abc68123964b56b211b92c12 (patch)
tree9434b3684195dcf497f613fbc86d43a60602d532 /ethereal/config.go
parent642630db15a793cf0a0f7fbd827daee364df5423 (diff)
downloadgo-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar.gz
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar.bz2
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar.lz
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar.xz
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.tar.zst
go-tangerine-49c710bf442940b3abc68123964b56b211b92c12.zip
assetPath configurable on command line for ethereal GUI
- solves the problem of non-standard installs - add AssetPath to config as string var - introduced UiLib constructor which falls back to defaultAssetPath (earlier behaviour) if no assetPath is set - defaultAssetPath now internal concern of UiLib - gui.Start(assetPath) argument passed from ethereal main() as set Init() in config.go - informative log message if wallet.qml fails to open
Diffstat (limited to 'ethereal/config.go')
-rw-r--r--ethereal/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethereal/config.go b/ethereal/config.go
index a534bb182..ac4484d0b 100644
--- a/ethereal/config.go
+++ b/ethereal/config.go
@@ -16,6 +16,7 @@ var UseSeed bool
var ImportKey string
var ExportKey bool
var DataDir string
+var AssetPath string
func Init() {
flag.BoolVar(&StartConsole, "c", false, "debug and testing console")
@@ -29,6 +30,7 @@ func Init() {
flag.StringVar(&DataDir, "dir", ".ethereal", "ethereum data directory")
flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)")
flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers")
+ flag.StringVar(&AssetPath, "asset_path", "", "absolute path to GUI assets directory")
flag.Parse()
}