From 51985ac71048d3c88b540a777967bf14e10363f5 Mon Sep 17 00:00:00 2001 From: Tymat Date: Tue, 11 Mar 2014 01:56:19 -0400 Subject: [PATCH] use GOPATH variable for base directory --- ui/ui_lib.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ui_lib.go b/ui/ui_lib.go index 2a1abee237ea..83d28eb25158 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,7 @@ 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" + base = os.Getenv("GOPATH") + "/src/github.com/ethereum/go-ethereum" case "linux": base = "/usr/share/ethereal" case "window":