Removed hardcoded home directory

This commit is contained in:
Tymat 2014-03-11 01:17:38 -04:00
parent fbd53f0e34
commit 3c6f51d5de
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
"path"
"path/filepath"
"runtime"
"os"
)
// UI Library that has some basic functionality exposed
@ -54,7 +55,8 @@ func AssetPath(p string) string {
// Get Binary Directory
exedir, _ := osext.ExecutableFolder()
base = filepath.Join(exedir, "../Resources")
base = "/Users/jeffrey/go/src/github.com/ethereum/go-ethereum"
home := os.Getenv("HOME")
base = home + "go/src/github.com/ethereum/go-ethereum"
case "linux":
base = "/usr/share/ethereal"
case "window":