From 3c6f51d5de6739dce6367659bdbb0c611e8dda0e Mon Sep 17 00:00:00 2001 From: Tymat Date: Tue, 11 Mar 2014 01:17:38 -0400 Subject: [PATCH] Removed hardcoded home directory --- ui/ui_lib.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/ui_lib.go b/ui/ui_lib.go index 2a1abee237..c28d470ef4 100644 --- a/ui/ui_lib.go +++ b/ui/ui_lib.go @@ -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":