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
This commit is contained in:
zelig
2014-03-27 17:14:04 +07:00
parent 642630db15
commit 49c710bf44
4 changed files with 22 additions and 9 deletions

View File

@@ -100,11 +100,11 @@ func main() {
os.Exit(0)
}
log.Printf("Starting Ethereum v%s\n", ethutil.Config.Ver)
log.Printf("Starting Ethereum GUI v%s\n", ethutil.Config.Ver)
// Set the max peers
ethereum.MaxPeers = MaxPeer
gui := ethui.New(ethereum)
gui.Start()
gui.Start(AssetPath)
}